!function(e){function t(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(){for(var e=0;e>>16&65535,i=65535&e,r=t>>>16&65535,o=65535&t;return i*o+(n*o+i*r<<16>>>0)|0}),Array.prototype.find=Array.prototype.find||function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var t=Object(this),n=t.length>>>0,i=arguments[1],r=0;r0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(){}function t(e,t){void 0===t&&(t=0),e=""+(e||"");for(var n=3735928559^t,i=1103547991^t,r=0,o=void 0;r>>16,2246822507)^Math.imul(i^i>>>13,3266489909),4294967296*(2097151&(i=Math.imul(i^i>>>16,2246822507)^Math.imul(n^n>>>13,3266489909)))+(n>>>0)}function n(e){var n={s:"src",h:"href"},i=e.innerText?t(e.innerText):"";return Object.keys(n).reduce(function(i,r){var o=n[r],a=e.getAttribute?e.getAttribute(o):"";return e.hasAttribute&&e.hasAttribute(o)&&""!==a?i+";"+r+":"+t(a):i},"|"+i)}function r(e,t){var n=document.createElement("div");n.innerHTML=e,n.classList.add("uw-page-structure-modal"),n.setAttribute("data-uw-feature-ignore","true"),n.id="uwPageStructureModal",t.isMobile&&n.firstChild&&n.firstChild.classList.add("uw-ps-mobile");var i=document.querySelector(".uw-s10-reading-guide");i&&i.parentElement&&i.parentElement.insertBefore(n,i)}function o(e,t,n,i){i?e.settings[t].value[i]=n:"object"==typeof e.settings[t]?e.settings[t].value=n:e.settings[t]=n,e.supportsLocalStorage?window.localStorage.setItem(t,n):u(t,n)}function a(){return"uw"+(~~(1e8*Math.random())).toString(16)}function s(){try{return"localStorage"in window&&null!==window.localStorage&&-1!==window.localStorage.setItem.toString().indexOf("[native code]")}catch(e){return!1}}function l(e){var t=null;try{t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"))}catch(e){}return t?decodeURIComponent(t[1]):void 0}function u(e,t,n){n=n||{};var i=n.expires;if("number"==typeof i&&i){var r=new Date;r.setTime(r.getTime()+1e3*i),i=n.expires=r}i&&i.toUTCString&&(n.expires=i.toUTCString()),t=encodeURIComponent(t);var o=e+"="+t;for(var a in n)if(n.hasOwnProperty(a)){o+="; "+a;var s=n[a];!0!==s&&(o+="="+s)}document.cookie=o}function c(e,t){for(var n=0;n0&&setTimeout(function(){var i=e.getBoundingClientRect();(i.top<0||i.top>=(window.innerHeight||document.documentElement.clientHeight))&&W(e,t,n-1)},t)}function x(e,t){var n=A();[document].concat(n).forEach(function(n){e.apply(n,t)})}function O(e){var t=window.location.origin;try{var n=new URL(e);if(!["http:","https:"].includes(n.protocol))return!1;return/^(https:\/\/)(?:qa\.|api\.qa\.|cdn\.dev\.|cdn\.qa\.|cdn77\.api\.qa\.|manage\.qa\.|api\.|cdn\.|cdn77\.api\.|manage\.|)?userway\.(org|dev)(\/api\/|\/)?/.test(n.origin)||n.origin===t}catch(e){return!1}}function I(e){var t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noopener noreferrer",document.body.appendChild(t),t.click(),document.body.removeChild(t)}function U(e){function t(e,t){window.URL=window.URL||window.webkitURL;var n=document.createElement("a"),i=new Blob([e]),r=window.URL.createObjectURL(i);n.href=r,n.download=t,n.click(),window.URL.revokeObjectURL(r)}if(O(e)){var n=function(e){return e.replace(/[^a-zA-Z0-9_.-]/g,"_")}(e.substring(e.lastIndexOf("/")+1));n.endsWith(".pdf")&&function(e,t,n){var i=new XMLHttpRequest;i.open("get",e,!0),n.responseType&&(i.responseType=n.responseType),i.onreadystatechange=function(){4===i.readyState&&200===i.status&&t(i)},i.send()}(e,function(e){t(e.response,n)},{responseType:"blob"})}}function N(e){var t,n=function(e){return e&&"input"===e.tagName.toLowerCase()&&e.hasAttribute("matinput")};return{materialInputLabelContainer:n(null===e||void 0===e?void 0:e.previousElementSibling)&&e,materialInputLabelContainerDescendants:n(null===(t=null===e||void 0===e?void 0:e.parentElement)||void 0===t?void 0:t.previousElementSibling)&&e.parentElement.querySelectorAll("*")}}var C="https://cdn.userway.org/",k=window.UserWayWidgetApp.addLib("util"),M="data-uw-iframe-ignore",P=window.UserWayWidgetApp.getLib("message-stream"),R=UserWayWidgetApp.getLib("inlineStyling");k.firedEvents={},k.LIFE_CYCLE_EVENT={INIT:"userway:init_completed",RENDER:"userway:render_completed",REMEDIATION:"userway:remediation_completed",FEATURE_ENABLED_BASE:"userway:feature_enabled_",FEATURE_DISABLED_BASE:"userway:feature_disabled_",REMEDIATION_IMAGE_ALT_FINISHED:"userway:remediation_image_alt_finished",REMEDIATION_CSR_LOADED:"userway:remediation_csr_loaded"},k.PROCESSING_EVENT={REMEDIATION_FORCE_RERUN:"userway:remediation_force_rerun"},k.DELAYS={SHORT:100,MEDIUM:500,LONG:1e3};var F=["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"];k.logger=function(){return["log","error","warn","info","debug","trace"].reduce(function(e,t){var n;return __assign(__assign({},e),(n={},n[t]=function(){},n))},{})}(),k.supportsPassive=!1;try{var D=Object.defineProperty({},"passive",{get:function(){k.supportsPassive=!0}});window.addEventListener("testPassive",null,D),window.removeEventListener("testPassive",null,D)}catch(e){}k.init=e,k.isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),k.iOSMobile=/(iphone|ipod|ipad).* os /.test(navigator.userAgent.toLowerCase()),k.isChromeExtensionEnv=function(){return"object"==typeof chrome&&"object"==typeof chrome.extension},k.request=function(e){return new Promise(function(t,n){"string"!=typeof e.url&&n({});var i=new XMLHttpRequest,r="string"==typeof e.method&&-1!==["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"].indexOf(e.method.toUpperCase())?e.method.toUpperCase():"GET";e.body&&"GET"===r&&Object.keys(e.body).forEach(function(t,n){e.url=0===n?e.url+"?"+t+"="+e.body[t]:e.url+"&"+t+"="+e.body[t]}),i.open(r,e.url),"object"==typeof e.header&&Object.keys(e.header).forEach(function(t){i.setRequestHeader(t,e.header[t])}),i.onload=function(){200===i.status?t(i):n(i)},i.onerror=function(){n(i)},i.onabort=function(){n(i)},i.send(e.body?JSON.stringify(e.body):null)})},k.customTrim=function(e){return e?e=e.trim().replace(/(\n|\r\n)/g,"").replace(/\s+/g," ").replace(/\u200B/g,""):""},k.customTextContent=function(e,t){void 0===t&&(t=3);var n=function(e,t){if(t<1)return"";var i=e.childElementCount,r="";return i||(r+=e.textContent),!r&&e.length&&(r+=e.nodeValue),i&&e.childNodes.length&&(r+=__spreadArray([],__read(e.childNodes),!1).map(function(e){return n(e,t-1)}).join(" ")),r};return n(e,t)},k.execJs=function(e,t){if("string"==typeof e)return new Promise(function(n,i){var r=document.createElement("script");t&&(r.crossOrigin="anonymous",r.integrity=t),(document.body||document.head).appendChild(r),r.onload=function(){n(r)},r.onerror=function(){i(r)},r.src=e})},k.xpath=function e(t,i){if(void 0===i&&(i=!1),t===document.documentElement)return"/HTML";if(t===document.body)return"/HTML/BODY";if(t===document.head)return"/HTML/HEAD";for(var r=0,o=t.parentNode?t.parentNode.childNodes:[],a=t,s=0;a&&a.tagName;)a=a.parentNode,s++;for(var l=0;l0},k.getParents=function(e){return"BODY"===e.nodeName?[e]:arguments.callee(e.parentElement).concat(e)},k.isFirstAboveSecond=function(e,t,n){if(null==n&&(n=0),e[n]===t[n])return null!=e[i]&&arguments.callee(e,t,n+1);var r=e[n]?indow.getComputedStyle(e[n]).zIndex:"auto",o=t[n]?window.getComputedStyle(t[n]).zIndex:"auto";return r===o?arguments.callee(e,t,n+1):("auto"===r?-.5:+r)>("auto"===o?-.5:+o)};k.getUserWayIconElementTitle=function(e){return(0,window.UserWayWidgetApp.getLib("localization_manager").translate)(e.language,"widget.html_title")||"Accessibility Menu"};k.getUserWayLstIconElementTitle=function(e){return(0,window.UserWayWidgetApp.getLib("localization_manager").translate)(e.language,"widget.html_lst_title")||"Translations Menu"},k.getModalCompanyLogoSource=function(e){var t=e.cdn+"widgetapp/images/logo.svg",n=function(e){return"https://userway.org?utm_source="+e+"&utm_medium=page_structure&utm_campaign=widget"}(e.tunings.site_name);return e.services&&e.services.CUSTOM_BRANDING&&e.services.CUSTOM_BRANDING.custom_logo_image_path?(t=e.services.CUSTOM_BRANDING.custom_logo_image_path,n=e.services.CUSTOM_BRANDING.custom_logo_image_link):e.services&&e.services.WHITE_LABEL&&e.services.WHITE_LABEL.hide_logo&&(t="",n=""),{src:t,url:n}},k.hexToRgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},k.fireForceRemediationRerunEvent=function(){k.fireUserWayLifeCycleEvent(k.PROCESSING_EVENT.REMEDIATION_FORCE_RERUN)},k.fireUserWayRemediationCompletedEvent=function(e){k.fireUserWayLifeCycleEvent(k.LIFE_CYCLE_EVENT.REMEDIATION,e)},k.fireUserWayLifeCycleEvent=function(e,t){void 0===t&&(t=null),k.firedEvents[e]=t;var n={userWayInstance:window.UserWay};t&&(n=k.mergeObjects([n,t]));try{var i,r=k.detectBrowser();"ie"===r?(i=document.createEvent("CustomEvent"),i.initCustomEvent(e,!0,!0,n)):i=new CustomEvent(e,{detail:n}),document.dispatchEvent(i)}catch(e){}},k.isElementVisible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.isInView=function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=document.body.getBoundingClientRect().bottom&&t.right<=document.body.getBoundingClientRect().right},k.isPartOfElementInViewport=function(e){for(var t=e.offsetTop,n=e.offsetLeft,i=e.offsetWidth,r=e.offsetHeight;e.offsetParent;)e=e.offsetParent,t+=e.offsetTop,n+=e.offsetLeft;return twindow.pageYOffset&&n+i>window.pageXOffset},k.containsInnerText=function(e){return!!e.innerText},k.validateElementAccessibility=function(e){return k.isElementVisible(e)&&k.containsInnerText(e)},k.addScreenRearedElement=function(e,t,n){void 0===n&&(n="");var i=document.createElement("span");return i.textContent=t,i.style="color: #ffffff!important;background: #000000!important;clip: rect(1px, 1px, 1px, 1px)!important;clip-path: inset(50%)!important;height: 1px!important;width: 1px!important;margin: -1px!important;overflow: hidden!important;padding: 0!important;position: absolute!important;",i.setAttribute("class",n),i.setAttribute("data-uw-rm-ignore",""),e.appendChild(i),i},k.getViewport=function(){return{vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),vh:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},k.getDiffPercentage=function(e,t){return Math.abs(e-t)/((e+t)/2)*100},k.getStyles=function(e){return e?window.getComputedStyle(e):{}},k.isTransparentElement=function(e){var t=k.getStyles(e),n=t.background,i=t.opacity;return/(^(rgb\())|(^(:?rgba).*(:?255\))$)/.test(n)||"1"!==i},k.isNotDefaultCssFlow=function(e,t){void 0===t&&(t=["absolute","fixed"]);var n=k.getStyles(e).position;return t.includes(n)},k.isOverlayElement=function(e,t){var n=k.getViewport(),i=n.vw,r=n.vh,o=e.offsetWidth,a=e.offsetHeight,s=k.getDiffPercentage(i,o),l=k.getDiffPercentage(r,a);if(s>25&&l>25){return[].slice.call(e.getElementsByTagName("*")).forEach(function(e){e.matches(t.join(","))||e.setAttribute("data-uw-feature-ignore","true")}),!0}return!1},k.ignoreMaterialUI=function(e){var t=N(e),n=t.materialInputLabelContainer,i=t.materialInputLabelContainerDescendants;return!(!n&&!i)&&(n&&n.setAttribute("data-uw-feature-ignore","true"),!0)},k.filterTransparentPositionedElements=function(e,t){void 0===t&&(t=[]);var n=e.matches(t.join(",")),i=window.getComputedStyle(e),r="fixed"===i.position,o=k.isNotDefaultCssFlow(e)&&!k.isTransparentElement(e)&&!n;return!!k.ignoreMaterialUI(e)||(o&&(r?e.setAttribute("data-uw-feature-ignore","true"):o=k.isOverlayElement(e,t)),!o)},k.getHtmlElement=function(){var e=this.getElementsByTagName("html");return e&&e.length&&e[0]?e[0]:null},k.filterIgnoredElems=function(e){return!e.hasAttribute("data-uw-feature-ignore")},k.isOpenShadowRoot=function(e){if(e)return!!e.shadowRoot},k.getShadowRootParent=function(e){var t=e.getRootNode();return t instanceof ShadowRoot?t:null},k.removeFeatureStyles=function(e){var t=e.element,n=e.activeCssClass,i=e.key,r=e.inlineStyles;t.classList.remove(n),R.resetInlineStyles(t,i,r)},k.getShadowRootChildren=function(e,t){return void 0===t&&(t="*"),e.shadowRoot.querySelectorAll(t)},Math.imul||(Math.imul=function(e,t){t|=0;var n=(4194303&e)*t;return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n}),k.execForDocumentAndIframes=x,k.isValidUrl=O,k.openUrl=I,k.downloadPdfFile=U,k.hasParentWithAttribute=function(e,t){var n,i,r=document.querySelectorAll("["+t+"]");try{for(var o=__values(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(s===e||s.contains(e))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},k.focusHostDocument=function(){if(k.isSafari){var e=document.createElement("input");e.type="text",e.style.opacity="0",e.style.height="0px",e.style.width="0px",e.style.padding="0px",e.style.border="none",e.style.outline="none",e.style.pointerEvents="none",document.body.appendChild(e),e.focus({preventScroll:!0}),e.remove()}},k.debounce=function(e,t){function n(){clearTimeout(r)}function i(){n(),r=setTimeout(function(){e()},t)}var r=null;return i.cancel=n,i},k.formatLangCode=function(e){return e&&e.replace(/(^\w+)([-|_|,])(\w+$)/,function(e,t,n,i){return t.toLowerCase()+n+i.toUpperCase()})},k.onElementVisible=function(e,t){new IntersectionObserver(function(n,i){n.forEach(function(n){n.intersectionRatio>0&&(t(e),i.disconnect())})}).observe(e)},k.findAllElements=function(e){var t=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","solidcolor","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","unknown","use","view","vkern"],n=__spreadArray([],__read(t.map(function(e){return"svg "+e})),!1);return e.querySelectorAll("*|*:not("+n.join(",")+")")},k.setItemWithExpiry=function(e,t,n){var i=new Date,r={value:t,expiry:i.getTime()+n};localStorage.setItem(e,JSON.stringify(r))},k.getItemWithExpiry=function(e){var t=k.getProperty(e,!0);return(null===t||void 0===t?void 0:t.expiry)?(new Date).getTime()>t.expiry?(localStorage.removeItem(e),null):t.value:t}}();var LS_KEY="uw-icon-locales",CDN_BASE="https://cdn.userway.org/",LOCALES="widgetapp/2024-10-08-15-28-17/locales/",VERSION="2024-10-08-15-28-17";!function(){function e(e){var t=n();return t&&t[e]?Promise.resolve():new Promise(function(t,n){r.request({method:"GET",url:CDN_BASE+LOCALES+e+".json"}).then(function(n){n&&n.response&&(i(e,JSON.parse(n.response)),t(""))},function(e){r.logger.warn("Can't load localization resources."),n(e)})})}function t(e,t){if(!e)return"";var i=n();if(i&&i[e]){return t.split(".").reduce(function(e,t){return e&&e[t]},i[e])}return""}function n(){var e=window.localStorage.getItem(LS_KEY);if(!e)return null;var t=JSON.parse(e);return t.version!==VERSION?(window.localStorage.removeItem(LS_KEY),null):t}function i(e,t){var i=n()||{version:VERSION};i[e]=t,window.localStorage.setItem(LS_KEY,JSON.stringify(i))}var r=UserWayWidgetApp.getLib("util"),o=UserWayWidgetApp.addLib("localization_manager");Object.assign(o,{initializeLocale:e,translate:t})}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){var e=[],t={next:function(t){var n,i;try{for(var r=__values(e),o=r.next();!o.done;o=r.next()){(0,o.value)(t)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},subscribe:function(t){return e.push(t),function(){e=e.filter(function(e){return e!==t})}},unsubscribe:function(t){e=e.filter(function(e){return e!==t})},unsubscribeAll:function(){e=[]}};window.messageStream=t;var n=UserWayWidgetApp.addLib("message-stream");Object.assign(n,t)}();var __read=this&&this.__read||function(e,t){ var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r=t?">":" ")},"").slice(0,-1)}function n(e,n){void 0===n&&(n=4);var r,o=e.length-c-n,a=e[e.length-1],s=a.params;if(o<0){r=t(e,0,!0);var l=i(r,s,a);return l||(r=t(e,0),i(r,s,a))}var u;!function(e){e[e.Strict=0]="Strict",e[e.Medium=1]="Medium",e[e.Loose=2]="Loose"}(u||(u={}));for(var d=[u.Strict,u.Medium,u.Loose],g=0;g=0;o--){r=l===u.Loose?t((d=e.slice(0,2)).concat.apply(d,__spreadArray([],__read(e.slice(-o-n)),!1)),e.length-n):t(e,e.length-n-o-1,l===u.Strict);var g=i(r,s,a);if(g)return g}}(d[g]);if(f)return f}return null}function i(e,t,n){var i=o(e);if(1===i.length){if(null==n.params)return i[0];if(r(i[0],t))return i[0]}if(i.length>1){if(null==n.params)return null;var a=i.filter(function(e){return r(e,t)});if(1===a.length)return a[0]}return null}function r(e,t){if(null==t)return!0;var n=e.innerText?l.hashString(e.innerText).toString():"";if(t.innerText.toString()!==n)return!1;var i=e.hasAttribute("href")?l.hashString(e.getAttribute("href")).toString():"";if(t.href&&t.href!==i)return!1;var r=e.hasAttribute("src")?l.hashString(e.getAttribute("src")).toString():"";return!t.src||t.src===r}function o(e){return Array.prototype.slice.call(document.querySelectorAll(e))}function a(t){var i=d(t);return n(e(i.xpath,i.params))}var s=window.UserWayWidgetApp.addLib("xpath_search"),l=window.UserWayWidgetApp.getLib("util"),u={i:"innerText",s:"src",h:"href"},c=2;s.recursiveXpathSearch=a;var d=function(e){var t=__read(e.split("|"),2),n=t[0],i=t[1],r={innerText:""};if(i){var o=__read(i.split(";")),a=o[0],s=o.slice(1);r.innerText=a,s.forEach(function(e){var t=__read(e.split(":"),2),n=t[0],i=t[1];r[u[n]]=i})}return{xpath:n,params:r}};s.getByXpath=function(e){var t=d(e),n=t.xpath,i=t.params,o=document.evaluate(n,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;return r(o,i)?o:null}}(),function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){var t,n,i=this._getEvents();if(e instanceof RegExp){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t}function i(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n}function r(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&r(e.listener)}function o(e,n){if(!r(n))throw new TypeError("listener must be a function");var i,o=this.getListenersAsObject(e),a="object"==typeof n;for(i in o)o.hasOwnProperty(i)&&-1===t(o[i],n)&&o[i].push(a?n:{listener:n,once:!1});return this}function a(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&-1!==(i=t(o[r],n))&&o[r].splice(i,1);return this}function s(e,t){var n,i,r,o,a=this.getListenersAsObject(e);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),r=0;r0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},CONTROLS_WITH_TEXT_TAGS=["textarea","select"],INPUT_TYPES_WITH_TEXT_CONTENT=["text","password","submit","reset","button","date","datetime-local","email","file","month","number","search","tel","time","url","week"],isInputElementWithText=function(e){var t;if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=e.tagName.toLowerCase();if(CONTROLS_WITH_TEXT_TAGS.includes(n))return!0;if("input"===n){var i=(null!==(t=e.getAttribute("type"))&&void 0!==t?t:"").toLowerCase();if(INPUT_TYPES_WITH_TEXT_CONTENT.includes(i)||!i)return!0}return!1},isDirectParentOfText=function(e){return Array.from(e.childNodes).some(function(e){return e.nodeType===Node.TEXT_NODE&&""!==e.textContent.trim()})};!function(){function e(e,t,n){(t.length||n.length)&&(a=!0)}function t(e){var t,n,i,o,a=r.instantiateTreeWalker({root:e.body,nodeFilter:NodeFilter.SHOW_ELEMENT}),s=r.getIframes(),l=s.filter(function(e){return e.body&&e.body.nodeType===Node.ELEMENT_NODE}).map(function(e){return r.instantiateTreeWalker({root:e.body,context:e,nodeFilter:NodeFilter.SHOW_ELEMENT})}),u=new Set,c=new Set,d=function(e){for(var t=[],n=e.nextNode();n;){var i=n;r.hasTextContent(i)&&isDirectParentOfText(i)&&(u.add(i),i.childNodes.forEach(function(e){n.nodeType===Node.TEXT_NODE&&c.add(e)})),isInputElementWithText(i)&&u.add(i),r.isOpenShadowRoot(n)&&t.push(r.instantiateTreeWalker({root:i.shadowRoot,nodeFilter:NodeFilter.SHOW_ELEMENT})),n=e.nextNode()}return{shadowWalkers:t}},g=[];try{for(var f=__values(__spreadArray([a],__read(l),!1)),p=f.next();!p.done;p=f.next()){var y=p.value,v=d(y);g=g.concat(v.shadowWalkers)}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}var m=UserWayWidgetApp.ContextHolder.config.services.userId;if(365323===m||320802===m)for(;g.length;){var w=[];try{for(var h=(i=void 0,__values(g)),b=h.next();!b.done;b=h.next()){var _=b.value,v=d(_);w=w.concat(v.shadowWalkers)}}catch(e){i={error:e}}finally{try{b&&!b.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}g=w}return{textNodes:__spreadArray([],__read(c),!1),elementsWithText:__spreadArray([],__read(u),!1)}}var n=UserWayWidgetApp.getLib("event_emitter"),i=UserWayWidgetApp.getLib("dom_observer"),r=UserWayWidgetApp.getLib("util"),o=i.DOM_OBSERVER_DOM_CHANGED_EVENT,a=!0,s={textNodes:[],elementsWithText:[]},l=UserWayWidgetApp.addLib("helpers.elements_with_text");l.init=function(){n.on(o,e)},l.getElementsWithText=function(e,n){if(void 0===n&&(n=!0),n&&s.elementsWithText)return s.elementsWithText;if(!a)return s.elementsWithText;var i=t(e),r=i.textNodes,o=i.elementsWithText;return a=!1,s={textNodes:r,elementsWithText:o},o},l.getTextNodes=function(e,n){if(void 0===n&&(n=!0),n&&s.textNodes)return s.textNodes;if(!a)return s.textNodes;var i=t(e),r=i.textNodes,o=i.elementsWithText;return a=!1,s={textNodes:r,elementsWithText:o},r}}(),function(){var e=UserWayWidgetApp.getLib("helpers.elements_with_text"),t=UserWayWidgetApp.addLib("helpers");t.initialized=!1,t.init=function(){t.initialized||(e.init(),t.ElementsWithText={getElementsWithText:e.getElementsWithText,getTextNodes:e.getTextNodes},t.initialized=!0)}}(),function(){function e(){var e=["account","position","size","language","color","type","statement_text","statement_url","mobile","trigger","ai_custom_focus_style_enabled","tts-voice","widget_layout"];if("undefined"==typeof _userway_config||!_userway_config){var t=null;if(window._userway_config={},t=document.querySelector("#"+r),t&&t.hasAttribute("data-account")&&(window._userway_config.account=t.getAttribute("data-account")),!t||!window._userway_config.account){for(var n=document.querySelectorAll("script"),i=0;i0)return t=n[e],"break"}(i))break}if(t){for(var o=t.attributes,i=o.length;i--;){var a=o[i],s=0===a.name.indexOf("data")?a.name.replace(/(^data-)/i,""):a.name;s&&e.indexOf(s)>-1&&("type"!==s||["1","2","3","4"].indexOf(a.value)>-1)&&(window._userway_config[s]=a.value)}if(!window._userway_config.account)for(var l=t.src,u=l.split("?").pop().split("&"),c=0;c-1&&d[1]&&(window._userway_config[d[0]]=d[1])}}}}}var t="UserWayWidgetApp",n=window[t].addLib("context_setter"),i=window[t].getLib("util"),r="a11yWidgetSrc";n.initializeConfig=function(){function n(){var e={};return[2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,23,24,25,101,102,103,104,105,106,107,108].forEach(function(t){e["userway-s"+t]={value:0,disabled:!1}}),e}function r(){var e={_userway_config:_userway_config,browser:i.detectBrowser(),isMobile:i.isMobile(),isLH:i.isLightHouse(),supportsLocalStorage:i.supportsLocalStorage(),href:i.getHref(),account:_userway_config.account||_userway_config.code,origin:window.location.origin,iconType:"1",language:"en-US",languageHardcoded:null,reader:{enabled:!0,language:null,voice_locale:null},async:!1,settings:n(),tunings:{},partner:null,cdn:"https://cdn.userway.org/",uid:""};return window[t].ContextHolder.config=e,e}return new Promise(function(t,n){e(),"undefined"!=typeof _userway_config&&_userway_config?t(r()):setTimeout(function(){e(),t(r())},2e3)})}}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(t,n){var i,r;try{for(var o=__values(Object.keys(n)),a=o.next();!a.done;a=o.next()){var s=a.value;t.hasOwnProperty(s)&&"object"==typeof n[s]?e(t[s],n[s]):t[s]=n[s]}}catch(e){i={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return t}window.UserWayWidgetApp.addLib("context_setter_on_prem").buildOnPremConfig=function(){var t={tunings:{widget_icon_type:"1",widget_icon_size:"large",widget_sounds:!0,widget_position:"1",widget_position_mobile:"1",widget_color:"#2d68ff",widget_language:"",widget_live_language_enabled:!0,widget_custom_trigger_enabled:!1,widget_headless:!1,widget_move_hidden:!1,site_name:"",accessibility_url:"",accessibility_link_text:"",accessibility_link_enabled:"",widget_no_report:!0,widget_no_manage:!0,widget_no_logo:!0},services:{siteId:1,userId:1,paidAi:!0,partner:"undefined"},remediationV2:{strategy:"AUTO",consolidated:null,perSiteRemediation:{enabled:!1,resources:null},alt:{enabled:!1,config:{}},vagueLinks:{enabled:!0,config:{}},headings:{enabled:!0,config:{}},forms:{enabled:!0,config:{}},moderator:{enabled:!1,config:{}},externalLinks:{enabled:!0,config:{}},brokenLinks:{enabled:!1,config:{}},identicalTargets:{enabled:!0,config:{}},customFocus:{enabled:!1,config:{}},ariaEditor:{enabled:!1,config:{}},contrast:{enabled:!0,config:{path:null,autofix:!1}},emptyControls:{enabled:!0,config:{}},language:{enabled:!0,config:{}},pdf:{enabled:!1,config:{}},skipLinks:{enabled:!0,config:{anchorSelector:null}},navigationMenu:{enabled:!0,config:{}},popups:{enabled:!0,config:{}},metaViewport:{enabled:!0,config:{}},commonSettings:{enabled:!0,config:{mobile:{enabled:!0},disabledPages:[]}},labs:{enabled:!0,config:{}},slickSlider:{enabled:!0,config:{}}},speechSynthesisEnabled:"undefined"!=typeof speechSynthesis};try{return"undefined"!=typeof _uw_pr_config&&_uw_pr_config?e(t,_uw_pr_config):t}catch(e){return console.error(e),t}}}(),function(){function e(e){var t=r.find(function(t){return t.element===e});return t||(t=new a(e),r.push(t)),t}function t(t,n,i){try{var r=e(t);r.applyStyles(i,n),r.element.setAttribute("data-"+n+"-styled",!0)}catch(e){!!console.log&&console.log("applyInlineStyles error. Element: "+t)}}function n(t,n,i){try{var r=e(t);r.resetStyles(i,n),r.element.removeAttribute("data-"+n+"-styled")}catch(e){!!console.log&&console.log("resetInlineStyles error. Element: "+t)}}var i=window.UserWayWidgetApp.addLib("inlineStyling");i.featureStyles={highlinks:{inlineStyles:{"text-decoration":"underline",color:"#ffff00","background-color":"#000000"},inlineImgStyles:{"box-sizing":"border-box",border:"1px solid #ffff00"},svgStyle:{"background-color":"#000000",fill:"#ffff00"}},contrast:{dark:{key:"userway-s3-2",forATag:{"background-color":"#000000","border-color":"#ffffff",color:"#fcff3c",svg:{"background-color":"#000000",fill:"#fcff3c"}},normal:{"background-color":"#000000","border-color":"#ffffff",color:"#50d0a0"},svgImg:{"background-color":"#000000",fill:"#ffffff"}},light:{key:"userway-s3-3",forATag:{"background-color":"#ffffff","border-color":"#000000",color:"#0000D3",svg:{"background-color":"#ffffff",fill:"#0000D3"}},normal:{"background-color":"#ffffff","border-color":"#000000",color:"#000000"},svgImg:{"background-color":"#ffffff",fill:"#000000"}}}};var r=[],o={"userway-s6":["userway-s3-2","userway-s3-3","uw-sr","data-uw-rm-color-contrast"],"userway-s3-2":["userway-s6","uw-sr","data-uw-rm-color-contrast"],"userway-s3-3":["userway-s6","uw-sr","data-uw-rm-color-contrast"],"uw-sr":["userway-s3-2","userway-s3-3","userway-s6","data-uw-rm-color-contrast"],"data-uw-rm-color-contrast":["userway-s6","userway-s3-2","userway-s3-3","uw-sr"]},a=function(){function e(e){this.element=e,this.initialStylesText=e.style.cssText,this.initialStyles=this.parseStylesToObject(e),this.listOfApplyiedStylesKeys=[],this.appliedStyles={},this.appliedStylesByFeature={},this.transition=window.getComputedStyle(this.element).getPropertyValue("transition")}return e.prototype.parseStylesToObject=function(e){var t=e.style.cssText.split(";"),n={};return t.splice(t.length-1,1),t.forEach(function(e){var t=e.substring(0,e.indexOf(":")).trim(),i=e.substring(e.indexOf(":")+1);i=i?i.trim():null,n[t]=i}),n},e.prototype.addStyleToAppliedListKeys=function(e){this.listOfApplyiedStylesKeys.unshift(e)},e.prototype.removeStyleFromAppliedListKeys=function(e){var t=this.listOfApplyiedStylesKeys.indexOf(e);-1!==t&&this.listOfApplyiedStylesKeys.splice(t,1)},e.prototype.removeStyleFromAppliedStylesByFeature=function(e){delete this.appliedStylesByFeature[e]},e.prototype.resetStylesToInitial=function(){this.element.style.cssText=this.initialStylesText},e.prototype.applyStyles=function(e,t){var n=this;this.appliedStylesByFeature[t]=e,e&&(Object.keys(e).forEach(function(i){n.appliedStyles[i]={featureThatApply:t,value:e[i],oldValue:n.initialStyles[i]},n.element.style.setProperty(i,e[i],"important"),n.element.style.setProperty("transition",n.transition)}),-1===this.listOfApplyiedStylesKeys.indexOf(t)&&this.addStyleToAppliedListKeys(t))},e.prototype.resetStyles=function(e,t){var n=this;Object.keys(e).forEach(function(e){if(n.appliedStyles[e]&&n.appliedStyles[e].featureThatApply===t){n.element.style.setProperty("transition","all 0s ease 0s"),n.element.style.setProperty(e,void 0===n.appliedStyles[e].oldValue?"":n.appliedStyles[e].oldValue),delete n.appliedStyles[e];if("background-color"===e||"background"===e){var i=n.initialStyles.background&&"background"||n.initialStyles["background-color"]&&"background-color";if(!i)return;var r=n.initialStyles[i].split("!");r.length>=2?n.element.style.setProperty(i,r[0].trim(),"important"):n.element.style.setProperty(i,n.initialStyles[i])}}}),this.removeStyleFromAppliedListKeys(t),this.removeStyleFromAppliedStylesByFeature(t),o[t]&&this.listOfApplyiedStylesKeys.length&&o[t].forEach(function(e){var t=n.listOfApplyiedStylesKeys.find(function(t){return t===e});if(t){var i=n.getStylesForFeature(t);if(i&&n.applyStyles(i,t),window.location.pathname===atob("L3dwcy9wb3J0YWwvUHJlcGFpZENhcmRTZWxmQ2FyZQ==")){var r={"background-image":"none"};n.applyStyles(r,atob("dXctcmFrYmFuay1maXg="))}}})},e.prototype.getStylesForFeature=function(e){var t;switch(e){case"userway-s3-2":case"userway-s3-3":var n="userway-s3-2"===e?"dark":"light";t="A"===this.element.tagName?i.featureStyles.contrast[n].forATag:i.featureStyles.contrast[n].normal;break;case"userway-s6":t="IMG"===this.element.tagName?i.featureStyles.highlinks.inlineImgStyles:i.featureStyles.highlinks.inlineStyles;break;default:t=this.appliedStylesByFeature[e]}return t},e}();i.applyInlineStyles=t,i.resetInlineStyles=n}(),function(){function e(){r=!0;var o=[],a=[];i.emitEvent(n.IS_MOUSE_USER_EVENT,[window[t].ContextHolder.config,o,a]),document.removeEventListener("mousemove",e)}var t="UserWayWidgetApp",n=window[t].addLib("user_input_type"),i=window[t].getLib("event_emitter"),r=!1;n.IS_MOUSE_USER_EVENT="IS_MOUSE_USER",document.addEventListener("mousemove",e)}();var __values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(){function e(){var e=p.config,i=n();i.filter(function(e){return e}),v=i[1],(!y||p.config.services.MODIFY_MENU&&-1===p.config.services.MODIFY_MENU.features_pattern.split("|").indexOf("s11"))&&(i=i.filter(function(e){return e.id!==W.openNavMenu}));var r=t();r.setAttribute("aria-label",S(e.language,"skip_links.title")||"Quick Accessibility Options"),i.forEach(function(e,t){var n=document.createElement("button");n.className="uw-sl__item",n.setAttribute("data-uw-rm-ignore","true"),n.setAttribute("data-uw-ignore-translate","true"),n.setAttribute("lang",e.language),n.id=e.id;var i=document.createElement("span");i.className="uw-sl__item__left",i.setAttribute("data-uw-ignore-translate","true");var a=document.createElement("span");a.className="uw-sl__item__img",a.innerHTML=e.img,i.appendChild(a);var s=document.createElement("span");s.className="uw-sl__item__title",s.setAttribute("data-uw-ignore-s17",""),s.setAttribute("data-uw-rm-ignore","true"),s.setAttribute("data-uw-ignore-translate","true");var l=c()&&e.altTitle?e.altTitle:e.title;s.innerHTML=l,n.setAttribute("aria-label",l),i.appendChild(s),n.appendChild(i);var u=document.createElement("span");u.className="uw-sl__e-icon",u.innerHTML='',n.appendChild(u),n.addEventListener("click",function(t){e.handler();var i=c()&&e.altTitle?e.altTitle:e.title;e.altTitle&&(s.innerHTML=i),n.setAttribute("aria-label",i),n.blur()}),n.addEventListener("keydown",function(e){"Escape"!==e.code&&27!==e.keyCode&&27!==e.which||(n.blur(),o())}),e.focusHandler&&n.addEventListener("focus",e.focusHandler),r.appendChild(n)})}function t(){var e=document.querySelector('div.uw-sl[role="region"]');if(!e){e=document.createElement("div"),e.className="uw-sl",e.setAttribute("role","region"),e.setAttribute("data-uw-rm-ignore","true"),e.setAttribute("data-uw-ignore-translate","true"),e.addEventListener("focus",r,!0);var t=document.getElementById("gatsby-focus-wrapper");if(t){var n=function(n){var r,o;try{for(var a=__values(n),s=a.next();!s.done;s=a.next()){var l=s.value;if("childList"===l.type){Array.from(l.removedNodes).find(function(t){return t==e})&&(t.insertBefore(e,t.firstChild),i.disconnect())}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},i=new MutationObserver(n);i.observe(t,{attributes:!1,childList:!0,subtree:!0}),t.insertBefore(e,t.firstChild)}else{var o=document.body;o.insertBefore(e,o.firstChild)}}return e.innerHTML="",e}function n(){var e=p.config,t={title:S(e.language,"skip_links.title")||"Quick Accessibility Options",skip:S(e.language,"skip_links.skip")||"Skip to main content",enable_visually_impaired:S(e.language,"skip_links.enable_visually_impaired")||"Enable accessibility for low vision",disable_visually_impaired:S(e.language,"skip_links.disable_visually_impaired")||"Disable accessibility for low vision",open_accessibility_menu:S(e.language,"skip_links.open_accessibility_menu")||"Open the accessibility menu"};return[{id:W.skipToMain,language:e.language,title:t.skip,ariaLabel:t.skip,img:'',handler:a},{id:W.visibility,language:e.language,title:t.enable_visually_impaired,ariaLabel:t.enable_visually_impaired,altTitle:t.disable_visually_impaired,img:'',handler:d,focusHandler:function(){p.preloadIframe()}},{id:W.openWidget,language:e.language,title:t.open_accessibility_menu,ariaLabel:t.open_accessibility_menu,img:'',handler:i}]}function i(){p.openWidget(),f(T.OPEN_WIDGET),o()}function r(e){O||(f(T.OPEN_LINKS),O=!0),"uw-enable-visibility"===e.target.id&&g(),setTimeout(function(){if(x)return o()},1)}function o(){var e=document.querySelector("body");e.hasAttribute("tabindex")||(e.setAttribute("tabindex","-1"),setTimeout(function(){e.removeAttribute("tabindex")},0)),e.focus({preventScroll:!0})}function a(){var e=l()||document.querySelector(h);e.getAttribute("tabindex")||e.setAttribute("tabindex","-1"),f(T.SKIP_TO_MAIN_CONTENT),setTimeout(function(){e.focus(),_.scrollToElementWithOffset(e,70)},300)}function s(e){for(var t=e,n=null;t&&"BODY"!==t.tagName&&(!(n=t.nextElementSibling)||!_.validateElementAccessibility(n));)t=t.parentElement;return n}function l(){for(var e,t=0;t<=b.length-1;t++){var n=document.querySelector(b[t]);if(n&&(('[role="main"]'!==b[t]||"BODY"!==n.tagName)&&_.isElementVisible(n))){e='[role="navigation"]'===b[t]||"nav"===b[t]?s(n):n;break}}return e||u()}function u(){return A.ElementsWithText.getElementsWithText(document).find(function(e){if((-1!==e.classList.value.search(/main/)||-1!==e.classList.value.search(/title/)||-1!==e.classList.value.search(/header/))&&_.validateElementAccessibility(e)&&e.hasAttribute("data-uw-rm-ignore"))return e})}function c(){return p.getAvailableBunchOfFeatures().every(function(e){return p.config.settings["userway-"+e].value})}function d(){if(c()){if(p.isSoundEffectsEnabled())try{var e=new Audio(p.config.cdn+"widgetapp/sounds/reset.mp3");e.play()}catch(e){}_.postMessage({action:"updateVisuallyImpairedState",config:!1})}else{if(p.isSoundEffectsEnabled())try{var e=new Audio(p.config.cdn+"widgetapp/sounds/viEnabled.mp3");e.play()}catch(e){}_.postMessage({action:"updateVisuallyImpairedState",config:!0}),setTimeout(function(){document.querySelector(".uai").focus();var e=document.querySelectorAll(".uw-sl__item")[1];e.focus(),e.blur()},10)}f(T.VISUALLY_IMPAIRED)}function g(){var e=document.querySelector("#uw-enable-visibility .uw-sl__item__title[data-uw-rm-ignore]"),t=document.querySelector("#uw-enable-visibility.uw-sl__item"),i=n()[1];t&&e&&i.altTitle&&(e.innerHTML=c()?i.altTitle:i.title,e.ariaLabel=c()?i.altTitle:i.ariaLabel,t.ariaLabel=c()?i.altTitle:i.ariaLabel)}function f(e){var t={account:p.config.account,feat:"s22",siteId:p.config.services.siteId,state:e,uid:p.config.uid,type:p.config.services.paidAi?"paid":"free",widgetType:p.config.widgetLayout||p.config.tunings.widget_layout,real:!0},n=atob("eExxdFhtQVRSdw=="),i=UserWayWidgetApp.ContextHolder.config.account;p.config.onPrem||n!==i&&_.request({method:"POST",url:L+"/v1/stats/enabled-feature",body:t,header:{"Content-Type":"application/json"}}).then(function(e){},function(e){console.warn("Statistics error")})}var p,y,v,m=UserWayWidgetApp.addLib("skip_links"),w="#uw_skip_to_main_content_anchor",h="#userwayAccessibilityIcon",b=["main","h1","nav",'[role="navigation"]','[role="main"]',"h2","h3","h4","h5","h6"],_=UserWayWidgetApp.getLib("util"),E=UserWayWidgetApp.getLib("localization_manager"),S=E.translate,A=UserWayWidgetApp.getLib("helpers"),L="https://api.userway.org/api",T={OPEN_LINKS:1,SKIP_TO_MAIN_CONTENT:2,VISUALLY_IMPAIRED:3,OPEN_WIDGET:4,PAGE_STRUCTURE:5},W={skipToMain:"uw-skip-to-main",visibility:"uw-enable-visibility",openWidget:"uw-open-accessibility",openNavMenu:"uw-open-nav-menu"},x=!1,O=!1;m.insert=function(){var t,n;p=UserWayWidgetApp.addLib("main"),y=p.config.services&&p.config.services.paidAi;var i=UserWayWidgetApp.getLib("remediationConfig")?UserWayWidgetApp.getLib("remediationConfig").skipLinks:null;(null===i||void 0===i?void 0:i.enabled)&&((null===(t=null===i||void 0===i?void 0:i.config)||void 0===t?void 0:t.anchorSelector)&&(w=null===(n=null===i||void 0===i?void 0:i.config)||void 0===n?void 0:n.anchorSelector),b.unshift(w),e(),document.addEventListener("click",function(){x=!0,setTimeout(function(){x=!1},300)}))},m.updateLinks=function(){setTimeout(function(){return e()},500)}}(),function(){var e=UserWayWidgetApp.addLib("scan_manager"),t=UserWayWidgetApp.getLib("util"),n="https://cdn.userway.org/",i="widgetapp/2024-10-08-15-28-17/scan/scan_1728401297040.js";e.run=function(){var n=UserWayWidgetApp.ContextHolder.config;n.onPrem||setTimeout(function(){if(!n.services||81434!==n.services.userId){var i=n.tunings&&!!n.tunings.widget_scan_url_params;if(!(location.href&&(location.href.indexOf("?")>-1||location.href.indexOf("&")>-1))||i){var r=n.remediation?"WIDGET_ON":"WIDGET_OFF";"fetch"in window&&(UserWayWidgetApp.ContextHolder.config.scanPage=!0,fetch("https://api.userway.org/api/a11y-data/v0/page/"+encodeURIComponent(location.href)+"/"+(t.isMobile()?"MOBILE":"DESKTOP")+"/"+r+"/status").then(function(t){try{t.json().then(function(t){t.payload&&"CONTRIB_MISSING"===t.payload.status&&e.loadAndExecScan()})}catch(e){}}))}}},5e3)},e.accessibilityScore=function(){return new Promise(function(e,r){UserWayWidgetApp.ContextHolder.config.scanPage=!1;var o=UserWayWidgetApp.getLib("scan_helper");o&&"function"==typeof o.scan?o.scan().then(function(t){e(t)}):t.execJs(n+i,"sha256-8eJCUOEZeTvhoGQtIEo+Hf+cqLZlBTIpffXszl4X0+I=").then(function(){UserWayWidgetApp.getLib("scan_helper").scan().then(function(t){e(t)})})})},e.loadAndExecScan=function(){t.execJs(n+i,"sha256-8eJCUOEZeTvhoGQtIEo+Hf+cqLZlBTIpffXszl4X0+I=").then(function(){UserWayWidgetApp.getLib("scan_helper").scan()})}}();var FuncKeys;!function(e){e.altKey="altKey",e.ctrlKey="ctrlKey",e.shiftKey="shiftKey"}(FuncKeys||(FuncKeys={}));var DEFAULT_OPEN_HOTKEY=[FuncKeys.ctrlKey,"KeyU"];!function(){var e=UserWayWidgetApp.addLib("WIDGET_HOTKEYS"),t=UserWayWidgetApp.getLib("main"),n=function(){var e,n,i=JSON.parse((null===(n=null===(e=t.config)||void 0===e?void 0:e.tunings)||void 0===n?void 0:n.widget_open_hotkey)||"null");return i&&(i=i.filter(Boolean)),(null===i||void 0===i?void 0:i.length)>=2?i:DEFAULT_OPEN_HOTKEY};e.isHotkeyToOpenWidget=function(e){return n().every(function(t){return e.code===t||e[t]})}}(),function(){function e(e,n){if(n.length){ if(n[0]&&n[0].id&&"string"==typeof n[0].id&&n[0].id.indexOf("powered_by_pixle")>-1)return;t()}}function t(){try{var e=[];r.forEach(function(t){switch(t.type){case"QUERY_SELECTOR":t.data.forEach(function(t){document.querySelector(t.s)&&e.push(t.id)})}}),e.length&&i(e)}catch(e){}}function n(){try{setTimeout(function(){r.forEach(function(e){switch(e.type){case"FUNCTION":e.data.forEach(function(e){var t=Function(e.s)();if(t&&t.length){var n={method:"POST",url:u+"/v1/helper/ss/hashed",header:{"Content-Type":"application/json"},body:{names:t,site:location.host}};l.request(n)}})}})},5e3)}catch(e){}}function i(e){var t={host:location.host,pathname:location.pathname};e.forEach(function(e){l.request({method:"POST",url:u+"/remediation/common-patterns/collector/"+e,header:{"Content-Type":"application/json"},body:t})})}var r,o=UserWayWidgetApp.addLib("cpr_usage_detector"),a=UserWayWidgetApp.getLib("event_emitter"),s=UserWayWidgetApp.getLib("dom_observer"),l=UserWayWidgetApp.getLib("util"),u="https://api.userway.org/api";o.run=function(){var i,o;(r=null===(o=null===(i=UserWayWidgetApp.ContextHolder)||void 0===i?void 0:i.config)||void 0===o?void 0:o.cpr)&&(n(),t(),a.on(s.DOM_OBSERVER_DOM_CHANGED_EVENT,e))}}(),function(){function e(e,n,i,r){void 0===r&&(r="");var o=(e+(r?"-"+r:"")).toLowerCase(),a=function(a){a.some(function(t){var i=t.lang,a=t.name,s=i.toLowerCase(),l=a.includes(n),u=r?s===o:s.startsWith(e.toLowerCase());return l&&u})&&t(e,n,i,r)},s=function(){var e=window.speechSynthesis.getVoices();e.length&&a(e)};try{window.speechSynthesis.addEventListener("voiceschanged",s),s()}catch(e){c.logger.error("Error checking system voices:",e)}}function t(e,t,n,i){d.push({ttsVoiceName:t,ttsLangIsoCode:e,ttsLocaleIsoCode:i,fallback:n,toLocaleStr:function(){return e+i?"-"+i:""}})}function n(e){if(e)return!!o(e,!1);var t=document.getElementsByTagName("html")[0];return!!o((null===t||void 0===t?void 0:t.getAttribute("lang"))||(null===t||void 0===t?void 0:t.getAttribute("xml:lang")))}function i(){var e=document.getElementsByTagName("html")[0],t=(null===e||void 0===e?void 0:e.getAttribute("lang"))||(null===e||void 0===e?void 0:e.getAttribute("xml:lang")),n=o(t);n&&c.execForDocumentAndIframes(function(){var e=this.getElementsByTagName("html")[0];!((null===e||void 0===e?void 0:e.getAttribute("lang"))||(null===e||void 0===e?void 0:e.getAttribute("xml:lang")))&&(null===e||void 0===e||e.setAttribute("lang",n.toLocaleStr()))})}function r(e){var t,n=Array.from(e.ownerDocument.querySelectorAll("*[lang]")),i=s("en");try{if(1===n.length&&"HTML"===n[0].tagName){return o(null===(t=n[0])||void 0===t?void 0:t.getAttribute("lang"),!1)||i}for(var r=e,a=null;r&&!(a=o(r&&"function"==typeof r.getAttribute?r.getAttribute("lang"):null,!1))&&"HTML"!==r.tagName;)r=r.parentElement;return a||i}catch(e){return console.warn(e),i}}function o(e,t){if(void 0===t&&(t=!0),!e)return null;var n=c.formatLangCode(e);n.toLowerCase().includes("zh")&&n.toLowerCase().includes("hans")&&(n="zh"),n.includes("zh-")&&(n="zh-Hant");var i=n.slice(0,2),r=n.slice(2),s=a(i,r);if(!s&&t){var l=document.querySelector("html");return o((null===l||void 0===l?void 0:l.getAttribute("lang"))||(null===l||void 0===l?void 0:l.getAttribute("xml:lang"))||null,!1)}return s}function a(e,t){var n=d.find(function(n){return n.ttsLangIsoCode===e&&n.ttsLocaleIsoCode===t.replace("-","")});return(null!==n&&void 0!==n?n:s(e))||null}function s(e){return d.find(function(t){return t.ttsLangIsoCode===e&&t.fallback})}var l="UserWayWidgetApp",u=window[l].addLib("tts-language-resolver"),c=window[l].getLib("util"),d=[];u.getLocaleForText=o,u.getLocaleForElement=r,u.isAvailableWithPreferedLanguage=n,u.enrichDomWithPreferableLanguage=i,t("en","US English Female",!1,""),t("en","US English Female",!1,""),t("en","US English Female",!0,"US"),t("en","Australian Female",!1,"AU"),t("en","UK English Female",!1,"GB"),t("ru","Russian Female",!0,""),t("ar","Arabic Female",!0,""),t("cs","Czech Female",!0,""),t("el","Greek Female",!0,""),t("es","Spanish Female",!0,""),t("fr","French Female",!0,""),t("hi","Hindi Female",!0,""),t("it","Italian Female",!0,""),t("ja","Japanese Male",!0,""),t("ko","Korean Female",!0,""),t("nl","Dutch Female",!0,""),t("pl","Polish Female",!0,""),t("pt","Portuguese Female",!0,""),t("pt","Brazilian Portuguese Female",!1,"BR"),t("ro","Romanian Female",!0,""),t("sv","Swedish Female",!0,""),t("tr","Turkish Female",!0,""),t("uk","Ukrainian Female",!0,""),t("ua","Ukrainian Female",!0,""),t("zh","Chinese Female",!0,""),t("zh","Chinese (Hong Kong) Male",!0,"Hant"),t("in","Indonesian Female",!0,""),t("id","Indonesian Female",!0,""),t("no","Norwegian Female",!0,""),t("nb","Norwegian Female",!0,"NO"),t("sk","Slovak Female",!0,""),t("ta","Tamil Male",!0,""),t("th","Thai Female",!0,""),t("sq","Albanian Male",!0,""),t("ca","Catalan Male",!0,""),t("hr","Croatian Male",!0,""),t("da","Danish Female",!0,""),t("fi","Finnish Female",!0,""),t("hu","Hungarian Female",!0,""),t("is","Icelandic Male",!0,""),t("lv","Latvian Male",!0,""),t("mk","Macedonian Male",!0,""),t("sr","Serbian Male",!0,""),t("vi","Vietnamese Male",!0,""),t("de","Deutsch Female",!0,""),t("mg","Montenegrin Male",!0,""),t("fo","Faroese custom",!0,""),e("he","Carmit",!0,""),e("he","Microsoft Asaf - Hebrew (Israel)",!0,"")}(),function(){function e(e){var t=void 0===e?{pageLanguage:"",widgetLanguage:""}:e,n=t.pageLanguage,r=t.widgetLanguage;return i.isAvailableWithPreferedLanguage(n)&&i.isAvailableWithPreferedLanguage(r)}var t="UserWayWidgetApp",n=window[t].addLib("tts-reader-status"),i=window[t].getLib("tts-language-resolver");n.isAvailable=e}();var userwaySupportedLanguages=["en-US","az","ar","bn","bg","zh","zh-Hant","hr","cs","nl","en-AU","en","en-GB","et","fi","fo","fr","ka","de","el","he","hi","hu","it","id","ja","ko","lt","mgo","no","fa","pl","pt-BR","pt","pa","ro","ru","sk","sl","sr","sr-Latn","es","es-MX","sv","tr","uk","cy","vi","da","ceb","haw","tl","th","sm","ca","ht","ilo","ps","prs","eu"],userwayMapToSupportedLanguages={in:"id",ua:"uk",nb:"no",en:"en-US"},userwaySupportedLocales=["en-US","en-AU","en-GB","pt-BR","es-MX","zh-Hant","sr-Latn"],USERWAY_DEFAULT_FALLBACK_LANGUAGE="en-US",userwaySupports=function(e){return userwaySupportedLanguages.includes(e)},formatLangCode=function(e){return/([-_,])/.test(e)?e.replace(/(^\w+)([-_,])(\w+$)/,function(e,t,n,i){return t.toLowerCase()+"-"+i.toUpperCase()}):e.toLowerCase()};!function(){var e=UserWayWidgetApp.getLib("util"),t=function(){try{var t=e.getProperty("userway-selectedLang",!1);return userwaySupports(t)?t:null}catch(e){return console.warn("Unable to resolve persisted in the local storage language",e),null}},n=function(){try{var e=UserWayWidgetApp.ContextHolder.config._userway_config;if(void 0!==e&&e.hasOwnProperty("language")&&e.language){var t=e.language;return userwaySupports(t)?t:null}}catch(e){console.warn("Unable to resolve language set as hardcoded config in the UserWay embed script",e)}return null},i=function(){try{var e=document.getElementsByTagName("html")[0],t=e.getAttribute("lang")||e.getAttribute("xml:lang");if(!t)return null;if(t.toLowerCase().includes("zh")&&t.toLowerCase().includes("hans"))return"zh";if(t.includes("zh-"))return"zh-Hant";if(t.includes("sr-"))return"sr-Latn";var n=formatLangCode(t);return userwaySupportedLocales.includes(n)||(n=n.split("-")[0]),userwayMapToSupportedLanguages[n]&&(n=userwayMapToSupportedLanguages[n]),userwaySupports(n)?n:null}catch(e){return console.warn("Unable to parse page html lang attribute",e),null}},r=function(e){return void 0===e&&(e={ownerLangSelection:""}),t()||n()||e.ownerLangSelection||i()||USERWAY_DEFAULT_FALLBACK_LANGUAGE},o=function(e){void 0===e&&(e={ownerLangSelection:""});var r=t();return!!r&&r===(n()||e.ownerLangSelection||i()||USERWAY_DEFAULT_FALLBACK_LANGUAGE)},a=UserWayWidgetApp.addLib("widget_language_resolver");Object.assign(a,{resolve:r,resolveUserLangSelection:t,resolveOwnerLangHardcoded:n,resolvePageLangAttribute:i,userLandSelectionIsDefaultLangSelected:o})}();var __assign=this&&this.__assign||function(){return __assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.successMatches}})}({flag:"b1",successMatches:2,test:function(e){return[r.isTab,r.isArrowLeft,r.isArrowRight].some(function(t){return t(e)})}}),e);n.start=function(){a()||l()||document.addEventListener("keydown",s)},n.stop=function(){document.removeEventListener("keydown",s)};var a=function(){var e=atob("eExxdFhtQVRSdw=="),t=UserWayWidgetApp.ContextHolder.config.account,n=UserWayWidgetApp.ContextHolder.config.services.siteId;return e===t||!n},s=function(e){var i=o[t.KeyboardUser];i.test(e)&&(i.addMatch(),i.isFullyMatched()&&(n.stop(),c(i.flag).then(u).catch(n.start)))},l=function(){try{var e=localStorage.getItem("recognizedUserBehavior");return!!JSON.parse(e)}catch(e){return!1}},u=function(){localStorage.setItem("recognizedUserBehavior",JSON.stringify(!0))},c=function(e){var t=UserWayWidgetApp.ContextHolder.config,n=t.account,r=t.uid,o=t.widgetLayout,a=t.tunings,s=t.services,l=s.siteId,u=s.paidAi;return i.request({method:"POST",url:"https://api.userway.org/api/v1/stats/enabled-feature",header:{"Content-Type":"application/json"},body:{account:n,siteId:l,uid:r,type:u?"paid":"free",widgetType:o||a.widget_layout,feat:e,real:!0}})}}();var __rest=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},__values=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},__spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r>e/4).toString(16)})}function i(){return!(!gt||!gt.tunings)&&(!0===gt.tunings.widget_hidden_for_site||!0===gt.tunings.widget_hidden_for_mobile&&wt.isMobile())}function r(){var e,t=Boolean(null===(e=gt.services)||void 0===e?void 0:e.paidAi),n=_userway_config.widget_layout||gt.tunings.widget_layout;return"headless"!==n||t?n:"full"}function o(){var e=r();return!e||["full","headless"].includes(e)}function a(){ot=UserWayWidgetApp.getLib("nano-widget"),ot.load().then(function(){ot.init()})}function s(){at=UserWayWidgetApp.getLib("mini-widget"),at.load().then(function(){at.init()})}function l(){xe(),Z(gt),wt.addStylesheet(jt),se(),ke(),Et.initializeDomChangesObserver(),Ot.init(),At.run(),Tt.run(),Lt.start(),Te(!0),u(),window.addEventListener("message",function(e){var t=e.data||{};if(t.isUserWay&&"sendEventToGoogleAnalytics"===t.action){var n="";switch(t.state){case 0:n="disabled";break;case 1:n="enabled"}un(t.name,n)}}),Ne().then(function(){var e=r();switch((e||""===e)&&(gt.widgetLayout=e,O()),e){case"nano":a();break;case"mini":s()}})}function u(e){(null===e||void 0===e?void 0:e.enabled)&&wt.execJs(Ct+Ht,"sha256-3MwZHeSsAX1MisygSu2itL5m5zqw/7faPKYSqTmboKc=")}function c(){var e,t,n=sessionStorage.getItem("qa_widget_lst_button_enabled"),a=sessionStorage.getItem("qa_widget_lst_button_type"),s=sessionStorage.getItem("qa_widget_lst_button_icon_type");return"true"===n&&(gt.tunings.widget_lst_button_enabled=n,gt.tunings.widget_lst_button_type=a,gt.tunings.widget_lst_button_icon_type=s),i()?void se():o()?(v(),m(),w(),p(),h(),xe(),Z(gt),u(gt.statistics),$(gt.services.LIVE_TRANSLATIONS,null===(t=null===(e=gt.remediation)||void 0===e?void 0:e.commonSettings)||void 0===t?void 0:t.enabled),void wt.addStylesheet(jt).then(function(){Ie(zt),se(),"headless"===r()&&UserWay.iconVisibilityOff(),he(),H();var e=wt.getProperty(Gt),t=!wt.isMobile()&>.tunings.widget_position_nudge,n=wt.isMobile()&>.tunings.widget_position_nudge_mobile;if((t||n)&&!e)var i=setInterval(function(){document.querySelector(".userway_buttons_wrapper")&&(clearInterval(i),we())},50);k(),I(),ke(),wt.isMobile()||St.insert(),z(),re(),ue(),ae(),Pe(),gt.partner===atob("cmFrYmFuaw==")&&window.location.pathname===atob("L3dwcy9wb3J0YWwvUHJlcGFpZENhcmRTZWxmQ2FyZQ==")&&document.querySelector("#keyboard").setAttribute("data-uw-ignore-translate",!0),Et.initializeDomChangesObserver(),Ot.init(),At.run(),Tt.run(),Lt.start(),Te(!0)})):l()}function d(){if(!window._userway){window._userway=!0;try{localStorage&&"function"==typeof localStorage.getItem&&localStorage.getItem("debug")&&"undefined"!==localStorage.getItem("debug")&&JSON.parse(localStorage.getItem("debug"))&&ee()}catch(e){}Ae(),Q(function(){if(t())return console.warn("UserWay Accessibility widget is deactivated");if(wt.isMobile()&>.tunings&&("false"===gt.tunings.mobile||!1===gt.tunings.mobile))console.warn("UserWay Accessibility widget is disabled on mobile devices via tunings setting");else var e=setInterval(function(){document.body&&(clearInterval(e),c())},500)})}}function g(){var e=wt.getCookie("hidewidget");if(e){try{var t=parseInt(e);switch(t){case 0:gn("current",null);break;case 864e5:gn("day",t);break;case 6048e5:gn("month",t);break;case 26784e5:default:gn("week",t)}wt.setCookie("hidewidget","",null),localStorage.removeItem("hideWidget")}catch(e){wt.logger.error("Hide widget cookie error",e)}return!0}var n=wt.getItemWithExpiry("hideUWWidget"),i=sessionStorage.getItem("hideUWWidget");return n||i}function f(){return gt&>.tunings&>.tunings.hasOwnProperty("widget_sounds")&>.tunings.widget_sounds}function p(){window.addEventListener("keydown",y,!0)}function y(e){"Tab"!==e.key&&9!==e.keyCode&&"ArrowDown"!==e.key||UserWayWidgetApp.ContextHolder.config.services.paidAi&&UserWayWidgetApp.ContextHolder.remediationModulePromise.then(function(){window.removeEventListener("keydown",y,!0),window.postMessage({isUserWay:!0,action:"remediation",type:"app-key-nav-enabled"},"*"),document.querySelector("html").setAttribute("data-uw-w-kb","")})}function v(){window.addEventListener("keydown",A,!0)}function m(){var e,t=(null===(e=gt.services)||void 0===e?void 0:e.paidAi)||!gt.services.hasOwnProperty("paidAi"),n=gt.services.hasOwnProperty("MODIFY_MENU")&>.services.MODIFY_MENU.is_enabled,i=!n||-1!==gt.services.MODIFY_MENU.features_pattern.split("|").indexOf("s9");t&&i&&Wt.isAvailable({pageLanguage:gt.widgetPageLang,widgetLanguage:gt.language})&&window.addEventListener("keydown",T,!0)}function w(){window.addEventListener("keydown",L,!0)}function h(){var e=gt.services.hasOwnProperty("MODIFY_MENU")&>.services.MODIFY_MENU.is_enabled,t=gt.services.hasOwnProperty("VOICE_NAVIGATION")&>.services.VOICE_NAVIGATION.is_enabled,n=!!window.chrome,i=Boolean(navigator.userAgent.match(/safari/i));(n||i)&&t&&(!e||!gt.services.MODIFY_MENU.features_pattern.split("|").includes("s24"))&&window.addEventListener("keydown",W,!0)}function b(){var e=document.querySelector(".userway_buttons_wrapper");["top","bottom","left","right"].forEach(function(t){null===e||void 0===e||e.style.setProperty([t],null,"important")})}function _(){if(!Xt){Xt=!0;var e=function(e){var t=e.data||{};if(t.isUserWay)if("appConfigLoaded"===t.action)en||(D("hide"),en=!0),!ft&&yt&&(fe(),D("hide")),ft=!1;else if("mailToSupport"===t.action)window.open("mailto:support@userway.org","_blank");else if("download_pdf"===t.action)wt.downloadPdfFile(t.url);else if("AiPageReload"===t.action)document.location.reload();else if("openExternalLink"===t.action)try{if(!wt.isValidUrl(t.url))return;wt.openUrl(t.url)}catch(e){return}else if("getConfig"===t.action)O();else if("isWidgetOpened"===t.action)yt?wt.postMessage({action:"toggled",state:"show"}):wt.postMessage({action:"toggled",state:"hide"});else if("close"===t.action)ve();else if("open"===t.action)ye();else if("manageIconVisibility"===t.action)ce(t.type);else if("default_language_changed"===t.action)t.lang||wt.postMessage({action:"setHtmlLangAttribute",lang:on||"en-US"}),window.localStorage.removeItem("userway-selectedLang"),window.localStorage.removeItem("userway-selectedSiteLang");else if("on_demand_reader"===t.action){if(t.contentToRead&&(gt.services.paidAi||!gt.services.hasOwnProperty("paidAi"))){var n=t.menuLanguage;t.contentWithPageLang&&(n=xt.resolvePageLangAttribute()),qe.readTextContent({language:n,contentToRead:t.contentToRead,isAlert:t.isAlert,readingSpeedRate:t.readingSpeedRate})}}else if("on_demand_reader_stop"===t.action)qe.stopReading();else if("setProperties"===t.action){for(var i in t.settings)t.settings.hasOwnProperty(i)&&void 0!==gt.settings[i]&&"userway_hidden"!==i&&(gt.settings[i].value=t.settings[i].value);var r=["s101","s102","s103","s104","s105","s106","s107","s108"],o=gt.services.hasOwnProperty("MODIFY_MENU")&>.services.MODIFY_MENU.is_enabled;o&&t.pattern&&(gt.services.MODIFY_MENU.features_pattern=t.pattern.filter(function(e){return-1===r.indexOf(e)}).join("|")),Se(),Te()}else if("pageStructureDialog"===t.action){var a=document.activeElement,s=t.settings.tab||"headers";"links"===s?Je.showPageStructureLinks(a):"landmarks"===s?Je.showPageStructureLandmarks(a):Je.showPageStructureHeaders(a)}else if("setWidgetColor"===t.action)gt.tunings.widget_color=t.color,gt.tunings.widget_color_gradient=t.gradient,I(),z();else if("setIconType"===t.action)gt.tunings.widget_icon_type=t.iconType,I();else if("setSoundEffects"===t.action)gt.tunings.widget_sounds=t.value;else if("isVisibleOnMobile"===t.action)gt.tunings.widget_hidden_for_mobile=t.value;else if("setIconSize"===t.action)gt.tunings.widget_icon_size=t.iconSize,I();else if("setWidgetLanguage"===t.action)Fe("enable","LIVE_TRANSLATIONS"),J(t.langCode),setTimeout(function(){N(),U()}),St.updateLinks();else if("loadLiveTranslationComponent"===t.action)$({is_enabled:!0},!1);else if("websiteTranslationCompleted"===t.action||"websiteTranslationReverted"===t.action)De("enable","LIVE_TRANSLATIONS"),setTimeout(function(){N(),H()});else if("setWidgetPosition"===t.action)t.byUser||(t.isMobile?wt.removeProperty(gt,Yt):wt.removeProperty(gt,Gt)),t.byMoveHideSection||(gt.tunings.widget_position=t.position),he(t.byUser?t.position:null,!!t.isMobile&&t.isMobile,t.byMoveHideSection),!wt.isMobile()&&t.widget_position_nudge||wt.isMobile()&&t.widget_position_nudge_mobile?we(t):b(),I();else if("setTimeHideWidget"===t.action)_e(t.value);else if("location_request"===t.action)wt.postMessage({action:"location_response",location:{hash:location.hash,host:location.host,hostname:location.hostname,href:location.href,origin:location.origin,pathname:location.pathname,port:location.port,protocol:location.protocol}});else if("setReaderGuidePosition"===t.action){var l=t.value;if(Ve){var u="ie"===gt.browser?window.pageYOffset||document.documentElement.scrollTop:window.scrollY;l.yPos=l.yPos+u,Ve.setRulerElPosition(l)}}else if("custom_trigger_update"===t.action){gt.tunings.widget_custom_trigger=t.data.selector,gt.tunings.widget_custom_trigger_enabled=t.data.enabled;var c=[].slice.call(document.querySelectorAll('[data-uw-trigger="true"]'));c.forEach(function(e){e.removeEventListener("click",te),e.removeEventListener("keypress",ne),e.removeAttribute("data-uw-trigger")});var d=Me();d&&d.length?(window.UserWay.iconVisibilityOff(),ie()):window.UserWay.iconVisibilityOn()}else if("on_demand_reader_preload"===t.action)Fe("preload","userway-s9"),qe.preload().then(function(){return De("preload","userway-s9")});else if("closeVoiceNavigation"===t.action)Ee("s24",0),wt.postMessage({action:"closeVoiceNavigation"});else if("sendEventToGoogleAnalytics"===t.action){var g=0===t.state?"disabled":"enabled";un(t.name,g)}};wt.registerPostMessageListener(e)}}function E(){document.querySelectorAll("body > *:not(script):not(.uwy)").forEach(function(e){e.setAttribute("inert","")})}function S(){document.querySelectorAll("*[inert]").forEach(function(e){e.removeAttribute("inert")})}function A(e){It.isHotkeyToOpenWidget(e)&&(e.preventDefault(),g()?(localStorage.removeItem("hideUWWidget"),sessionStorage.removeItem("hideUWWidget"),wt.setCookie("hidewidget","",null),localStorage.removeItem("hideWidget"),window.location.reload()):(Ce(),ye()))}function L(e){"Space"!==e.keyCode&&32!==e.which||!e.ctrlKey||UserWay.resetAll()}function T(e){if(("Period"===e.code||"."===e.key)&&e.ctrlKey&>.reader.enabled){var t=window.localStorage.getItem("readerSpeed")?window.localStorage.getItem("readerSpeed"):1;t=parseInt(t,10),x(t),gt.settings["userway-s9"].value?UserWay.readPageDisable():UserWay.readPageEnable(t),wt.postMessage({action:"toggleReader"})}}function W(e){var t,n;if(("Comma"===e.code||","===e.key)&&e.ctrlKey){var i=1===(null===(n=null===(t=null===gt||void 0===gt?void 0:gt.settings)||void 0===t?void 0:t["userway-s24"])||void 0===n?void 0:n.value);Ne().then(function(){Ee("s24",i?0:1),wt.postMessage({action:i?"closeVoiceNavigation":"openVoiceNavigation"})})}}function x(e){var t=setInterval(function(){if(window.responsiveVoiceLocales){var n=window.responsiveVoiceLocales[gt.language].widget.responsive_voice,i=gt.settings["userway-s9"].value?Re()?n.enabled_wl:n.enabled:Re()?n.disabledScreenReader_wl:n.disabledScreenReader;qe.readTextContent({language:gt.language,contentToRead:i,isAlert:!1,readingSpeedRate:e}),clearInterval(t)}},50)}function O(){wt.postMessage({action:"sendConfig",config:gt})}function I(){var e,t,n=""+B(),i=""+V(),r=q();if(gt.services.LIVE_TRANSLATIONS&&(null===(e=gt.tunings)||void 0===e?void 0:e.widget_lst_button_enabled))switch(null===(t=gt.tunings)||void 0===t?void 0:t.widget_lst_button_type){case"1":M(r,i);break;case"2":M(r,i),P(n,r,i);break;default:P(n,r,i)}else P(n,r,i);C(n,r),U();var o=document.querySelector("div.uwy");wt.isMobile()||"small"===i?(o.classList.remove("uts"),o.classList.remove("utb")):("mini"===i&&o.classList.add("uts"),"large"===i&&o.classList.add("utb"))}function U(){if(UserWayWidgetApp.lazyLoaded){var e=document.querySelectorAll(".usr");document.querySelector("img.userway_check_on")||e.forEach(function(e){var t=document.createElement("IMG");t.classList.add("userway_check_on"),t.setAttribute("data-uw-rm-ignore",""),t.setAttribute("data-uw-ignore-s25",!0),t.width=18,t.height=20,t.alt="Accessibility menu is on",e.parentNode.insertBefore(t,e.nextSibling),F(t,"check_on.svg")})}}function N(){var e=function(){var e,t,i,r=""+(null===(e=gt.tunings)||void 0===e?void 0:e.widget_lst_button_icon_type);if(null===(t=gt.tunings)||void 0===t||!t.widget_lst_button_enabled||"flag"!==r){var o=nt.getNameByLangCode(n),a=document.createElement("div");if(a.classList.add("uwaw-lang-list__circle","uwaw-lang-list__circle-"+lt),a.setAttribute("data-uw-rm-ignore",""),a.setAttribute("data-uw-ignore-translate",!0),a.setAttribute("title","Auto Translation enabled: "+o),a.textContent+=lt,null===(i=gt.tunings)||void 0===i?void 0:i.widget_lst_button_enabled){var s=document.querySelector(".ulsti .usr");s.parentNode.insertBefore(a,s.nextSibling)}else{var l=document.querySelector(".uai .usr");l.parentNode.insertBefore(a,l.nextSibling)}}},t=UserWayWidgetApp.getLib("LIVE_TRANSLATIONS");if(t&&t.getCurrentLanguage){var n=t.getCurrentLanguage(),i=document.querySelector("div.uwaw-lang-list__circle");i&&i.parentNode.removeChild(i),Promise.all([function(){return nt?Promise.resolve(!0):wt.execJs(Ct+"frontend/javascripts/languages.js?v=1728401297040","sha256-Ok/D6GqE8mOIL8XXl0oUXfeJABff9piXEcVGN1vPQBs=").then(function(){return nt=UserWayWidgetApp.getLib("LANGUAGES"),!0}).catch(function(){return!1})}(),function(){return tn?Promise.resolve(!0):wt.addStylesheet(Ct+"frontend/stylesheets/flags.css?v=1728401297040").then(function(){return tn=!0}).catch(function(){return!1})}()]).then(function(t){var i=__read(t,2),r=i[0],o=i[1];if(r&&o){lt=nt.getIsoByLangCode(n||gt.language),D("hide"),n&&e();M(q(),""+V())}})}}function C(e,t){var n,i,r=document.querySelectorAll(".ups");try{for(var o=__values(r),a=o.next();!a.done;a=o.next()){var s=a.value;if(s){s.innerHTML='';var l=s.querySelector("img.si_w");R(t,s.querySelector("img.si_b"),l,"spin")}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function k(){var e,t,n=""+(null===(e=gt.tunings)||void 0===e?void 0:e.widget_lst_button_icon_type);if((null===(t=gt.tunings)||void 0===t?void 0:t.widget_lst_button_enabled)&&"flag"===n){var i=document.querySelector(".ulsti");null===i||void 0===i||i.classList.add("userway_loading")}}function M(e,t){var n,i=""+(null===(n=gt.tunings)||void 0===n?void 0:n.widget_lst_button_icon_type),r=document.querySelector(".ulsti .uiiw"),o=document.querySelector(".ulsti");r.innerHTML='';var a=document.querySelector(".ulsti img.ui_w"),s=document.querySelector(".ulsti img.ui_b");switch(i){case"characters":R(e,s,a,"characters"),s&&s.setAttribute("alt",""),a&&a.setAttribute("alt","");break;case"earth":R(e,s,a,"earth"),s&&s.setAttribute("alt",""),a&&a.setAttribute("alt","");break;case"flag":if(r.innerHTML="",lt){o.style.setProperty("box-sizing","border-box","important"),r.className="uiiw fflag fflag-"+lt+" lst-btn-flag ff-round";var l=void 0;switch(t){case"mini":l="1px";break;case"small":l="1.5px";break;case"large":l="2px"}var u='url("'+gt.cdn+"frontend/images/circle-flags/"+lt.toLowerCase()+'.svg")';r.style.setProperty("border-style","solid","important"),r.style.setProperty("border-width",l,"important"),r.style.setProperty("background-image",u,"important"),r.setAttribute("data-uw-ignore-s25",!0);var c=gt.cdn+"frontend/images/flagSprite60.png",d=new Image;d.onload=function(){var e=document.querySelector(".ulsti");null===e||void 0===e||e.classList.remove("userway_loading")},d.src=c,d.complete&&d.onload()}}}function P(e,t,n){var i=document.querySelector("div.uwy"),r=""+(_userway_config.type||gt.tunings.widget_icon_type||Nt.UW_WIDGET_ICON_TYPE),o=-1!==["4","5","6","7"].indexOf(e),a=document.querySelector(".uai .uiiw");if("4"!==r)i.classList.contains("uac")&&i.classList.remove("uac"),a.innerHTML='';else{wt.addUwStylesheetMetropolisFont(gt),i.classList.add("uac");var s=ht.translate,l=s(gt.language,"widget.text_icon_small"),u=s(gt.language,"widget.text_icon_large"),c="large"!==n||wt.isMobile()?l:u;a.innerHTML='
'+c+"
"}var d=document.querySelector(".uai img.ui_w"),g=document.querySelector(".uai img.ui_b");switch(r){case"1":R(t,g,d,"body"),g&&g.setAttribute("alt",""),d&&d.setAttribute("alt","");break;case"2":o?R(t,g,d,"wheel_right"):R(t,g,d,"wheel_left"),g&&g.setAttribute("alt",""),d&&d.setAttribute("alt","");break;case"3":R(t,g,d,"eye"),g&&g.setAttribute("alt",""),d&&d.setAttribute("alt","");break;case"6":R(t,g,d,"man_with_stick"),g&&g.setAttribute("alt",""),d&&d.setAttribute("alt","");break;case"5":R(t,g,d,"sliders"),g&&g.setAttribute("alt",""),d&&d.setAttribute("alt","");break;case"4":break;default:R(t,g,d,"body"),g&&g.setAttribute("alt",""),d&&d.setAttribute("alt","")}}function R(e,t,n,i){e&&e.isLight?F(t,i+"_bl.svg"):F(n,i+"_wh.svg")}function F(e,t){e.setAttribute("src",gt.cdn+"widgetapp/images/"+t)}function D(e){var t,n;e=void 0===e?"toggle":e;var i=[document.querySelector(".uai"),document.querySelector(".ulsti")];try{for(var r=__values(i),o=r.next();!o.done;o=r.next()){var a=o.value;"show"===e?null===a||void 0===a||a.classList.add("userway_loading"):"hide"===e?null===a||void 0===a||a.classList.remove("userway_loading"):"toggle"===e&&(null===a||void 0===a||a.classList.toggle("userway_loading"))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}function H(){var e,t,n,i=document.querySelector(".uai"),r=document.querySelector(".ulsti"),o=document.querySelector(".uwif"),a=(null===(e=gt.services)||void 0===e?void 0:e.CUSTOM_BRANDING)||(null===(t=gt.services)||void 0===t?void 0:t.WHITE_LABEL)||(null===(n=gt.tunings)||void 0===n?void 0:n.widget_no_logo);null===i||void 0===i||i.setAttribute("title",wt.getUserWayIconElementTitle(gt)),null===i||void 0===i||i.setAttribute("aria-label",wt.getUserWayIconElementTitle(gt)),null===r||void 0===r||r.setAttribute("title",wt.getUserWayLstIconElementTitle(gt)),null===r||void 0===r||r.setAttribute("aria-label",wt.getUserWayLstIconElementTitle(gt)),o.setAttribute("title",a?wt.getUserWayIconElementTitle(gt):"UserWay "+wt.getUserWayIconElementTitle(gt))}function q(){var e={color:Nt.UW_WIDGET_COLOR,gradient:null,isLight:!1},t=gt.color||gt.tunings.widget_color;if(t){var n=wt.hexToRgb(t.replace("#",""));e.isLight=wt.colourIsLight(n[0],n[1],n[2]),e.color=t}(gt.color||gt.tunings.widget_color_gradient&>.tunings.widget_color_gradient===Nt.UW_WIDGET_COLOR_GRADIENT)&&(gt.tunings.widget_color_gradient=null);var i=gt.color_gradient||gt.tunings.widget_color_gradient;return i&&(e.gradient=i),e}function B(){var e=wt.getProperty(Gt);if(e)return gt.userSpecificPosition=e,e;var t=gt.tunings.widget_position;return wt.isMobile()&>.tunings.widget_position_mobile&&(t=gt.tunings.widget_position_mobile),"shortpoint"===gt.services.partner?gt.position||t||"3":_userway_config.position||gt.position||t||Nt.UW_BUTTON_POSITION}function V(){return _userway_config.size||gt.size||gt.tunings.widget_icon_size||Nt.UW_WIDGET_ICON_SIZE}function j(){var e=q();if(e){var t=document.querySelector(".uw-popup-header"),n=document.querySelector(".uw-popup-header-text"),i=t.querySelector(".uw-popup-header-close-path"),r=e.gradient||e.color,o=e.isLight?"#000000":"#ffffff";t&&(t.setAttribute("style","background: "+r+"!important; color:"+o+"!important"),n.setAttribute("style","color:"+o+"!important")),i&&i.setAttribute("style","stroke: "+o+"!important")}}function z(){var e,t,n=[document.querySelector(".uai"),document.querySelector(".ulsti")],i=q(),r=i.gradient||i.color;try{for(var o=__values(n),a=o.next();!a.done;a=o.next()){var s=a.value;if(r){if(s){var l=r;if("ie"===wt.detectBrowser()){var u=""+(_userway_config.type||gt.tunings.widget_icon_type||Nt.UW_WIDGET_ICON_TYPE) ;4!==u&&"4"!==u||(l+=";min-width:auto!important;max-width:none!important;min-height:auto!important;max-height:none;!important")}s.style.setProperty("background",l,"important"),i.isLight?(s.classList.add("uli"),s.classList.remove("userway_dark")):(s.classList.remove("uli"),s.classList.add("userway_dark"))}var c=document.querySelector(".userway_hide_on");c&&c.style.setProperty("background",i.color,"important");var d=document.querySelector(".userway_hide_off");d&&d.style.setProperty("background",i.color,"important");var g=document.querySelector(".uhi span");g&&g.style.setProperty("background",i.color,"important")}else null===s||void 0===s||s.classList.add("userway_dark")}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}wt.postMessage({action:"setWidgetColour",payload:i||null})}function G(){var e="fo"===gt.language&>.partner!==atob("ZmFyb2U=");!Wt.isAvailable({pageLanguage:gt.widgetPageLang,widgetLanguage:gt.language})||e?K():Y()}function Y(){gt.reader.enabled=!0,wt.postMessage({action:"screen_reader_available"})}function K(){qe.disable(),gt.reader.enabled=!1,wt.postMessage({action:"screen_reader_not_available"})}function J(e,t){void 0===t&&(t=!1),e&&(t||wt.setProperty(gt,Kt,e),gt.tunings.widget_language=e,gt.language=e,ft=!0,it.updateDictionaryConfigs(),t&&ge(e),G(),"fo"===gt.language&>.partner!==atob("ZmFyb2U=")&&K(),ht.initializeLocale(e).finally(function(){var t=document.querySelector("div.uwy");wt.postMessage({action:"setHtmlLangAttribute",lang:e});var n={"en-US":"Our site is built for you; use it in a way that works best for you",ar:"تم تصميم موقعنا من أجلك. استخدمه بطريقة تناسبك بشكل أفضل"};t.setAttribute("title",location.hostname===atob("cmV2YW1wLnJha2JhbmsuYWU=")?n[gt.language]:wt.getUserWayIconElementTitle(gt))}))}function X(e){gt.tunings=e.tunings,gt.services=e.services,gt.cpr=e.cpr,gt.onPrem=qt,gt.partner=e.services&&e.services.partner?e.services.partner:null,gt.widgetPageLang=xt.resolvePageLangAttribute(),gt.languageHardcoded=xt.resolveOwnerLangHardcoded(),gt.widgetLayout=r();var t=e.tunings.widget_language&&"null"!==e.tunings.widget_language&&"auto"!==e.tunings.widget_language?e.tunings.widget_language:null;gt.language=xt.resolve({ownerLangSelection:t}),xt.userLandSelectionIsDefaultLangSelected({ownerLangSelection:t})&&wt.removeProperty(gt,Kt),function(){var t;gt.remediation=e.remediationV2,gt.imageAlt=e.imageAlt,gt.statistics=null===(t=e.globals)||void 0===t?void 0:t.widgetRemediationStatsCollecting,gt.widgetCustomLanguages=e.widgetCustomLanguages,nn.forEach(function(e){var t=gt.tunings[e];gt.tunings[e]=t?JSON.parse(t):null}),UserWayWidgetApp.ContextHolder.config=gt}(),ht.initializeLocale(gt.language).then(function(){var t=!!gt.widgetPageLang&&Wt.isAvailable({pageLanguage:gt.widgetPageLang,widgetLanguage:gt.language}),n=!qt||e.speechSynthesisEnabled;gt.reader={enabled:t&&n}})}function Q(e){var t;if(qt)X(_t.buildOnPremConfig()),UserWayWidgetApp.lazyLoaded=!0,e&&e();else{var n=null;_userway_config&&_userway_config.platform?n=_userway_config.platform:window._userway_config&&window._userway_config.platform&&(n=window._userway_config.platform);var i=window.location.origin,o=document.referrer;if(!i||"null"===i){i="https://inspect.userway.org";try{o=window.top.location.href}catch(e){}}try{o=new URL(o).origin}catch(e){o=i}var a=gt.account===atob("eExxdFhtQVRSdw=="),s=a?{}:gt.settings,l=gt.uid,u={settings:s,origin:i,referrer:o,base:gt.base,pageUrl:i,uid:l,version:kt,widgetType:r()};n&&(u.platform=n),(null===(t=null===gt||void 0===gt?void 0:gt._userway_config)||void 0===t?void 0:t.platfAppInstalledSiteId)&&(u.platfAppInstalledSiteId=gt._userway_config.platfAppInstalledSiteId),gt&&(gt.account||gt.code)||(console.warn("Widget initialization error: no account/code provided. Default code will be used"),gt.account="qLb3sVM6fr",gt.defaultAccountUsed=!0);var c=new XMLHttpRequest;c.open("post",Vt+"/tunings/"+(gt.account||gt.code)),c.setRequestHeader("Content-Type","text/plain;charset=UTF-8"),c.onload=function(){try{if(503===c.status)throw new Error("Error 503");if(502===c.status)throw new Error("Error 502");if(200!==c.status)throw new Error("Not 200 status");var t=JSON.parse(c.response);if(200!==t.code)return void console.error("Initialization error: "+t.code+" - "+t.message);X(t.data)}catch(e){console.error(e)}e&&e()},c.onerror=function(e){console.error(e)},c.onabort=function(e){console.error(e)},c.send(JSON.stringify(u))}}function Z(e){var t=e.remediation,n=e.tunings;t||wt.fireUserWayRemediationCompletedEvent({enabled:!1});var i=e.services&&e.services.paidAi,r=null,o=null;t&&t.commonSettings.enabled?(r=Mt,o="sha256-/mb5Hq4S78oKwReuBQXkPyXoH52lrRPNLlY79/4VCO4="):i&&(r=Ft,o="sha256-0aBSfjiiFzK5aQ6bLZFvj5fHk/PmB1fShpFRZnYyYiE="),r&&(UserWayWidgetApp.ContextHolder.remediationModulePromise=wt.execJs(Ct+r,o),UserWayWidgetApp.addLib("remediationConfig",t),UserWayWidgetApp.ContextHolder.remediationResources=null),t&&!t.commonSettings.enabled||(e.services.editorBuildUrl=Ct+Dt,r?UserWayWidgetApp.ContextHolder.remediationModulePromise.then(function(){wt.execJs(Ct+Pt,"sha256-QsHd6vhHix9U7tt4KeoZ/Hq0SQ5u/XAkfdFmD3PdG3M=")}):n.widget_free_remediation_disable||wt.execJs(Ct+Rt,"sha256-c3GQJN9dr0mKa0M1qaiFhEB3t6hXMCiUGw4QIykX7so="),(null===t||void 0===t?void 0:t.consolidated)&&wt.request({method:"GET",url:t.consolidated}).then(function(e){e&&e.response&&(UserWayWidgetApp.ContextHolder.remediationResources=JSON.parse(e.response))},function(e){console.warn("Can't load remediation resources.")}))}function $(e,t){e&&e.is_enabled&&(Fe("enable","LIVE_TRANSLATIONS"),wt.execJs(Ct+"widgetapp/2024-10-08-15-28-17/translations/live_translations_1728401297040.js","sha256-12rjmD+3ifAt2ud8lUW+VlsUyfmVxYGP+Iz3TqqVrSY=").then(function(){var e=UserWayWidgetApp.getLib("LIVE_TRANSLATIONS"),n=function(){return e.awaitForResources()};return new Promise(function(e){var i=function(t){De("enable","LIVE_TRANSLATIONS"),e(t)};t?document.addEventListener(wt.LIFE_CYCLE_EVENT.REMEDIATION,function(){return n().then(i)},{once:!0}):n().then(i)})}).then(function(){N()}))}function ee(){wt.execJs(Ct+"widgetapp/2024-10-08-15-28-17/performance/performance_1728401297040.js").then(function(){var e=UserWayWidgetApp.getLib("performance_logger");ut=e.getInstance("Features")})}function te(){window.UserWay.widgetToggle()}function ne(e){window.UserWay.widgetToggle(),"Enter"===e.key&&(e.preventDefault(),window.UserWay.widgetToggle())}function ie(){var e=Me();e.length&&e.forEach(function(e){e.hasAttribute("data-uw-trigger")||(e.addEventListener("click",te),e.addEventListener("keypress",ne),e.setAttribute("data-uw-trigger",!0),e.setAttribute("data-uw-ignore-s25",!0),e.setAttribute("aria-haspopup","dialog"))})}function re(){var e,t,n,i;ie(),oe();var r=document.querySelector("body"),o=[document.querySelector(".uai"),document.querySelector(".ulsti")],a=document.querySelector(".uwy"),s=(null===(n=gt.tunings)||void 0===n?void 0:n.widget_lst_button_enabled)&&2==(null===(i=gt.tunings)||void 0===i?void 0:i.widget_lst_button_type);r&&r.addEventListener("touchstart",function(e){for(var t=!1,n=e.target;n;){if(n.classList&&(n.classList.contains("uai")||n.classList.contains("uai"))){t=!0;break}n=n.parentNode}t||a.classList.remove("uo")},!!wt.supportsPassive&&{passive:!0});try{for(var l=__values(o),u=l.next();!u.done;u=l.next()){var c=u.value;!function(e){var t=!1;gt.isMobile&&(null===e||void 0===e||e.addEventListener("touchstart",function(e){if(!t&&(e.stopPropagation(),e.preventDefault(),t=!0,setTimeout(function(){t=!1},400),!e.target||"function"!=typeof e.target.closest||!e.target.closest(".uwaw-dictionary-tooltip"))){de(s&&"userwayLstIcon"===e.currentTarget.id?sn.lst:sn.main),setTimeout(function(){a.classList.add("uo")},50)}},{passive:!1})),!gt.isMobile&&(null===e||void 0===e||e.addEventListener("click",function(e){if(!(t||e.target&&"function"==typeof e.target.closest&&e.target.closest(".uwaw-dictionary-tooltip"))){de(s&&"userwayLstIcon"===e.currentTarget.id?sn.lst:sn.main)}})),null===e||void 0===e||e.addEventListener("keydown",function(e){if(32===e.keyCode||13===e.keyCode){de(s&&"userwayLstIcon"===e.currentTarget.id?sn.lst:sn.main)}}),null===e||void 0===e||e.addEventListener("keyup",function(e){27===e.keyCode&&ve()}),null===e||void 0===e||e.addEventListener("focus",function(){Ce()}),null===e||void 0===e||e.addEventListener("mouseover",function(){gt.isMobile||(clearTimeout(cn),cn=setTimeout(function(){a.classList.add("uo")},100),Ce())}),null===e||void 0===e||e.addEventListener("mouseout",function(){gt.isMobile||(clearTimeout(cn),cn=setTimeout(function(){a.classList.remove("uo")},100))})}(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}}function oe(){new MutationObserver(function(e){return e.forEach(function(e){"lang"===e.attributeName&&G()})}).observe(document.querySelector("html"),{attributes:!0})}function ae(){wt.fireUserWayLifeCycleEvent(wt.LIFE_CYCLE_EVENT.RENDER)}function se(){try{var e=!!UserWayWidgetApp.ContextHolder&&!!UserWayWidgetApp.ContextHolder.config&&!!UserWayWidgetApp.ContextHolder.config.remediation;wt.fireUserWayLifeCycleEvent(wt.LIFE_CYCLE_EVENT.INIT,{remediationEnabled:e}),e||wt.fireUserWayRemediationCompletedEvent({enabled:!1})}catch(e){}}function le(e,t,n){void 0===n&&(n=null);var i=n?{state:n}:null;wt.fireUserWayLifeCycleEvent(e+t,i)}function ue(){try{var e=window.location.hash.substr(1);if(e&&e.toLowerCase()===Ut||_userway_config.forceOpen)return location.hash=Ut,ye();if(new RegExp("[?&]"+Ut,"i").test(window.location.search))return ye()}catch(e){}}function ce(e){var t,n,i,r;try{var o=null===(i=gt.tunings)||void 0===i?void 0:i.widget_lst_button_enabled,a="1"===(null===(r=gt.tunings)||void 0===r?void 0:r.widget_lst_button_type),s=[];a||s.push(document.querySelector("div.uai")),o&&s.push(document.querySelector("div.ulsti"));try{for(var l=__values(s),u=l.next();!u.done;u=l.next()){var c=u.value;if(!c)return console.warn("Icon not found");e?"visible"===e?c.classList.remove("hidden"):c.classList.add("hidden"):c.classList.contains("hidden")?c.classList.remove("hidden"):c.classList.add("hidden")}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}catch(e){}}function de(e){yt?ve():(ye(e),un("userway_widget_open"))}function ge(e){var t=document.querySelector(".uwif");if(!ft||t.src){var n=function(e,t){var n=t,i=e;n[i];return __rest(n,["symbol"==typeof i?i:i+""])},i=function(e,t){var i=t;return"object"==typeof t&&null!==t&&(i=e.reduce(function(e,t){return n(t,e)},t)),encodeURIComponent(JSON.stringify(i))},r="rand="+ +new Date,o=["services","tunings","language","account","widgetPageLang"],a=["accessibility_url","accessibility_link_enabled","accessibility_link_text","CUSTOM_BRANDING","VOICE_NAVIGATION"],s=o.map(function(e){var t=UserWayWidgetApp.ContextHolder.config[e];return t?e+"="+i(a,t):null}).filter(Boolean),l=__spreadArray([r],__read(s),!1).join("&");t.setAttribute("src",Bt+e+"/index.html?"+l)}ft=!1}function fe(){var e=document.querySelector(".uwy");e.classList.add("uon"),e.classList.remove("hidden");var t=document.querySelector(".uwif");t.removeAttribute("aria-hidden"),t.removeAttribute("tabindex"),dn(!0)}function pe(){document.querySelector(".uwy").classList.remove("uon");var e=document.querySelector(".uwif");e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"),He.focus(),dn(!1)}function ye(e){if(void 0===e&&(e=sn.main),He=document.activeElement,window.location.origin&&"null"!==window.location.origin){_(),E();try{if(f()){var t=new Audio(gt.cdn+"widgetapp/sounds/widgetOpened.mp3");Jt=new Audio(gt.cdn+"widgetapp/sounds/widgetClosed.mp3"),t.play()}}catch(e){}var n=document.querySelector(".uwif");n.hasAttribute("src")&&en||D("show"),Promise.resolve().then(function(){return n.hasAttribute("src")?fe():Ne().then(function(){pt=xt.resolveUserLangSelection(),pt&>.language!==pt&&(gt.language=pt),ge(gt.language)})}).then(function(){try{wt.postMessageWithNotification({action:"toggled",state:"show",trigger:e},"widgetOpened",function(){yt=!0,fe()})}catch(e){console.error(e)}G(),Xe&&Xe.hideActiveTooltip&&Xe.hideActiveTooltip()})}}function ve(){if(f())try{Jt.play()}catch(e){}S();var e=UserWayWidgetApp.getLib("remediation_utils");"object"==typeof e&&"function"==typeof e.highlightElements&&e.highlightElements();try{wt.postMessageWithNotification({action:"toggled",state:"hide"},"widgetClosed",function(){yt=!1,Be.onWidgetClosed(),pe()})}catch(e){console.error(e)}}function me(e,t){var n=new RegExp("\\b"+t+".*?\\b","g");return e.className=e.className.replace(n,""),e}function we(e){void 0===e&&(e=gt.tunings);var t=wt.isMobile(),n=document.querySelector(".userway_buttons_wrapper"),i=t&&e.widget_position_nudge_mobile?e.widget_position_nudge_mobile.moveX:e.widget_position_nudge.moveX,r=t&&e.widget_position_nudge_mobile?e.widget_position_nudge_mobile.moveY:e.widget_position_nudge.moveY,o=t&&e.widget_position_nudge_mobile?e.widget_position_nudge_mobile.xOrientation:e.widget_position_nudge.xOrientation,a=t&&e.widget_position_nudge_mobile?e.widget_position_nudge_mobile.yOrientation:e.widget_position_nudge.yOrientation,s=t?!e.position_mobile&&e.widget_position_mobile?parseInt(e.widget_position_mobile,10):parseInt(e.position,10):!e.position&&e.widget_position?parseInt(e.widget_position,10):parseInt(e.position,10);if(b(),i)if(-1!==[1,2,3].indexOf(s))"right"===o&&(i=-i),n.style.setProperty("left","calc(100vw - "+(rn.leftRightSide.right+i)+"px)","important");else if(-1!==[4,8].indexOf(s)){var l="left"===o?" - ":" + ";n.style.setProperty("left","calc("+rn.middle.left+"%"+l+i+"px)","important")}else-1!==[5,6,7].indexOf(s)&&("left"===o&&(i=-i),n.style.setProperty("left",rn.leftRightSide.left+i+"px","important"));if(r)if(-1!==[3,4,5].indexOf(s))"top"===a&&(r=-r),n.style.setProperty("bottom",rn.leftRightSide.bottom+r+"px","important");else if(-1!==[2,6].indexOf(s)){var l="bottom"===a?" - ":" + ";n.style.setProperty("top","calc("+rn.middle.top+"%"+l+r+"px)","important")}else-1!==[1,7,8].indexOf(s)&&("bottom"===a&&(r=-r),n.style.setProperty("top",rn.leftRightSide.top+r+"px","important"))}function he(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e||B();e&&(gt.settings[t?Yt:Gt]={},wt.setProperty(gt,t?Yt:Gt,n?i:null));var r=document.querySelector(".uwy"),o=document.querySelector(".uwif");(me(o,"userway_p"),o.classList.add("userway_p"+i),r&&(me(r,"userway_p"),r.classList.add("userway_p"+i),setTimeout(function(){r.style.setProperty("visibility","","")},250)),wt.getProperty("userway_hidden"))&&document.querySelector(".uwy").classList.add("userway_hidden")}function be(){var e=["s2","s4","s6","s7","s12","s13","s14","s23"];return gt.services.hasOwnProperty("MODIFY_MENU")&>.services.MODIFY_MENU.is_enabled?e.filter(function(e){return-1!==gt.services.MODIFY_MENU.features_pattern.split("|").indexOf(e)}):e}function _e(e){var t=e.type,n=e.expirationTime;gn(t,n),ve(),ce("hidden"),be().forEach(function(e){Ee(e,0)});for(var i in gt.settings)gt.settings[i].hasOwnProperty("value")&&(gt.settings[i].value=0);wt.postMessage({action:"updateVisuallyImpairedState",config:!1}),Se()}function Ee(e,t){var n="userway-"+e;if(void 0!==t)if("s2"===e)gt.settings[n].value=t,0===t&&(gt.settings["userway-s10"].value=t,gt.settings["userway-s16"].value=t);else if("s3"===e||"s14"===e||"s17"===e||"s23"===e)-1!==[!1,1,2,3].indexOf(t)?gt.settings[n].value=t:gt.settings[n].value=0;else if("s4"===e||"s19"===e)-1!==[!1,1,2,3,4].indexOf(t)?gt.settings[n].value=t:gt.settings[n].value=0;else if("s21"===e||"s18"===e)-1!==[!1,1].indexOf(t)?gt.settings[n].value=t:gt.settings[n].value=0;else if("s8"===e)for(var i in gt.settings)gt.settings[i].value=0;else gt.settings[n].value=t;Se(),Te()}function Se(){for(var e in gt.settings)"userway_hidden"===e||e===Kt?wt.setProperty(gt,e,gt.settings[e]):wt.setProperty(gt,e,gt.settings[e].value);UserWayWidgetApp.ContextHolder.config=gt}function Ae(){for(var e in gt.settings)gt.settings.hasOwnProperty(e)&&(gt.settings[e].value=wt.getProperty(e))}function Le(){if("undefined"!=typeof _userway_config)for(var e in _userway_config)_userway_config.hasOwnProperty(e)&&(gt[e]=_userway_config[e])}function Te(e){if(void 0===e&&(e=!1),window.UserWayWidgetApp&&window.UserWayWidgetApp.lazyLoaded){if(JSON.stringify(gt.settings)!==JSON.stringify(vt)){if(mt={},Object.keys(vt).length)for(var t in gt.settings)gt.settings.hasOwnProperty(t)&&vt.hasOwnProperty(t)&>.settings[t].value!==vt[t].value&&(mt[t]=JSON.parse(JSON.stringify(gt.settings[t])));else mt=gt.settings;for(var t in mt)!function(t){if(gt.settings.hasOwnProperty(t)){var n=gt.services&>.services.paidAi;if(gt.settings[t]&>.settings[t].value&&(n||-1===an.indexOf(t))){Fe("enable",t);var i=function(){return De("enable",t)},r=wt.LIFE_CYCLE_EVENT.FEATURE_ENABLED_BASE,o=null;if("userway-s2"===t)Ve.enableBigCursor(),o="s2";else if("userway-s3"===t)ze.turnOffColorFeature(),ze.turnOnColorFeature(t,gt),o="s3";else if("userway-s4"===t)je.enable(),o="s4";else if("userway-s6"===t)Ge.enable(),o="s6";else if("userway-s7"===t)Ke.disable(),Ye.enable(),o="s7";else if("userway-s9"===t)Be.enable(),qe.enable().then(i),o="s9",window.localStorage.setItem("readerSpeed",gt.settings[t].value);else if("userway-s10"===t)Ve.enableReadingGuide(),o="s10";else if("userway-s11"===t){var a=e?2e3:0;setTimeout(function(){Je.showPageStructureHeaders().then(i),o="s11"},a)}else"userway-s12"===t?(Xe.enable(),o="s12"):"userway-s13"===t?(Qe.enable(),o="s13"):"userway-s14"===t?(Ze.enable(),o="s14"):"userway-s15"===t?(Ke.enable(),o="s15"):"userway-s16"===t?(Ve.enableReadingMask(),o="s16"):"userway-s17"===t?($e.disable(),$e.enable(),o="s17"):"userway-s18"===t?(ze.enableSmartContrast(),o="s18"):"userway-s19"===t?(et.disable(),et.enable(),o="s19"):"userway-s23"===t?(tt.disable(),tt.enable(),o="s23"):"userway-s21"===t?(it.enable().then(i),_(),o="21"):"userway-s24"===t?(Promise.all([qe.preload(),rt.enable()]).then(i),ve(),_(),o="s24"):"userway-s25"===t?(st.enable(),o="s25"):"userway-s101"===t?o="s101":"userway-s102"===t?o="s102":"userway-s103"===t?o="s103":"userway-s104"===t?o="s104":"userway-s105"===t?o="s105":"userway-s106"===t?o="s106":"userway-s107"===t?o="s107":"userway-s108"===t&&(o="s108");o&&le(r,o,gt.settings[t].value),!["userway-s21","userway-s11","userway-s9"].includes(t)&&i()}else if(!e){Fe("disable",t);var r=wt.LIFE_CYCLE_EVENT.FEATURE_DISABLED_BASE,s=null;if("userway-s2"===t)Ve.disableBigCursor(),s="s2";else if("userway-s3"===t)ze.turnOffColorFeature(),s="s3";else if("userway-s4"===t)je.disable(),s="s4";else if("userway-s5"===t)console.warn("s5 key: shouldn't happen anymore");else if("userway-s6"===t)Ge.disable(),s="s6";else if("userway-s7"===t)Ye.disable(),s="s7";else if("userway-s9"===t)qe.disable(),Be.disable(),s="s9";else if("userway-s10"===t)Ve.disableReadingGuide(),s="s10";else if("userway-s12"===t)Xe.disable(),s="s12";else if("userway-s13"===t)Qe.disable(),s="s13";else if("userway-s14"===t)Ze.disable(),s="s14";else if("userway-s15"===t)Ke.disable(),s="s15";else if("userway-s16"===t)Ve.disableReadingMask(),s="s16";else if("userway-s17"===t)$e.disable(),s="s17";else if("userway-s18"===t)ze.disableSmartContrast(),s="s18";else if("userway-s19"===t)et.disable(),s="s19";else if("userway-s23"===t)tt.disable(),s="s23";else if("userway-s21"===t){it.disable(),s="s21",document.querySelector(".uwaw-dictionary-tooltip").classList.remove("uwaw-dictionary-tooltip_active");var l=document.querySelector(".uwaw-dictionary-tooltip__i");l&&l.remove()}else"userway-s24"===t?(rt.disable(),s="s24"):"userway-s25"===t?(st.disable(),s="s25"):"userway-s101"===t?s="s101":"userway-s102"===t?s="s102":"userway-s103"===t?s="s103":"userway-s104"===t?s="s104":"userway-s105"===t?s="s105":"userway-s106"===t?s="s106":"userway-s107"===t?s="s107":"userway-s108"===t&&(s="s108");s&&le(r,s),De("disable",t)}}}(t);vt=JSON.parse(JSON.stringify(gt.settings))}o()&&We(),dt.showPageStructureLinks=Je.showPageStructureLinks}}function We(){var e=document.querySelector(".uwy");Object.keys(gt.settings).some(function(e){var t;return(null===(t=gt.settings[e])||void 0===t?void 0:t.value)&&"userway-positionWidget"!==e})?e.classList.add("uen"):e.classList.remove("uen")}function xe(){window.UserWay=new function(){function e(e,t){if(void 0===t){var n="userway-"+e,i=dt.getFeaturesSettings(),r=i[n].value;"s4"===e||"s19"===e?r?r<4?r+=1:r=0:r=1:"s9"===e?i[n].disabled?r=0:r<3?r+=1:r=!r:"s17"===e||"s23"===e||"s3"===e||"s14"===e?r?r<3?r+=1:r=0:r=1:r="s21"===e||"s101"===e||"s102"===e||"s103"===e||"s104"===e||"s105"===e||"s106"===e||"s107"===e||"s108"===e?r?0:1:!r,t=r}Ne().then(function(n){dt.setFeature(e,t);var i={action:"feature_use",name:e};t&&(i.value=t),wt.postMessage(i)})}var t=this;return t.getVersion=function(){return"1.0.0"},t.getAccessibilityScore=function(){At.accessibilityScore()},t.widgetToggle=function(){dt.toggleWidget()},t.widgetOpen=function(){dt.openWidget()},t.widgetClose=function(){dt.closeWidget()},t.enableVoiceNavigation=function(e){_(),qe.preload(),rt.enable(e)},t.disableVoiceNavigation=function(){rt.disable()},t.keyboardNavToggle=function(){},t.keyboardNavEnable=function(){},t.keyboardNavDisable=function(){},t.bigCursorToggle=function(){e("s2")},t.bigCursorEnable=function(){e("s2",1)},t.bigCursorDisable=function(){e("s2",0)},t.contrastToggle=function(){e("s3")},t.contrastEnable=function(t){-1!==[1,2,3].indexOf(t)?e("s3",t):e("s3")},t.contrastDisable=function(){e("s3",0)},t.bigTextToggle=function(){e("s4")},t.bigTextEnable=function(t){-1!==[1,2,3,4].indexOf(t)?e("s4",t):e("s4")},t.bigTextDisable=function(){e("s4",0)},t.highlightToggle=function(){e("s6")},t.highlightEnable=function(){e("s6",1)},t.highlightDisable=function(){e("s6",0)},t.legibleFontsToggle=function(){e("s7")},t.legibleFontsEnable=function(){e("s7",1)},t.legibleFontsDisable=function(){e("s7",0)},t.textSpacingToggle=function(){e("s14")},t.textSpacingEnable=function(t){e("s14",t)},t.textSpacingDisable=function(){e("s14",0)},t.lineHeightToggle=function(){e("s17")},t.lineHeightEnable=function(t){e("s17",t)},t.lineHeightDisable=function(){e("s17",0)},t.inlineDictionaryToggle=function(){e("s21")},t.inlineDictionaryEnable=function(t){e("s21",t)},t.inlineDictionaryDisable=function(){e("s21",0)},t.textAlignToggle=function(){e("s19")},t.textAlignEnable=function(t){e("s19",t)},t.textAlignDisable=function(){e("s19",0)},t.saturationToggle=function(){e("s23")},t.saturationEnable=function(t){e("s23",t)},t.saturationDisable=function(){e("s23",0)},t.resetAll=function(){e("s8")},t.readPageToggle=function(){e("s9")},t.readPageEnable=function(t){void 0===t&&(t=1),e("s9",t)},t.readPageDisable=function(){e("s9",0)},t.readingGuideToggle=function(){e("s10")},t.readingGuideEnable=function(){e("s10",!0)},t.readingGuideDisable=function(){e("s10",!1)},t.readingMaskToggle=function(){e("s16")},t.readingMaskEnable=function(){e("s16",!0)},t.readingMaskDisable=function(){e("s16",!1)},t.dyslexiaFontToggle=function(){e("s15")},t.dyslexiaFontEnable=function(){e("s15",!0)},t.dyslexiaFontDisable=function(){e("s15",!1)},t.iconVisibilityToggle=function(){dt.manageIconVisibility()},t.iconVisibilityOn=function(){dt.manageIconVisibility("visible")},t.iconVisibilityOff=function(){dt.manageIconVisibility("hidden")},t.preloadWidget=function(){Ce()},t.pageStructureHeaders=function(){Je.showPageStructureHeaders()},t.pageStructureLandmarks=function(){Je.showPageStructureLandmarks()},t.pageStructureLinks=function(){Je.showPageStructureLinks()},t.pageStructureDisable=function(){Je.closePageStructureDialog()},t.tooltipsToggle=function(){e("s12")},t.tooltipsEnable=function(){e("s12",1)},t.tooltipsDisable=function(){e("s12",0)},t.stopAnimationToggle=function(){e("s13")},t.stopAnimationEnable=function(){e("s13",1)},t.stopAnimationDisable=function(){e("s13",0)},t.changeWidgetLanguage=function(e){Ne().then(function(){J(e,!0)})},t.enableSmartContrast=function(){e("s18",1)},t.disableSmartContrast=function(){e("s18",0)},t.enableHideImages=function(){e("s25",1)},t.disableHideImages=function(){e("s25",0)},t.debug=function(){try{localStorage.setItem("debug","true"===localStorage.getItem("debug")?"false":"true"),document.location.reload()}catch(e){console.log("debug mode activation failed",e)}},t.toggleInitialPagePreload=function(){var e=window.localStorage.getItem(ct),t=!JSON.parse(e);window.localStorage.setItem(ct,t.toString()),console.log("Initial page widget preload is "+(t?"enabled":"disabled")+"!")},t.setPosition=function(e,t,n){void 0===n&&(n=!1),he(e,t,n)},t}}function Oe(e){var t,n,i;gt.services.LIVE_TRANSLATIONS&&(null===(t=gt.tunings)||void 0===t?void 0:t.widget_lst_button_enabled)?"1"==(null===(n=gt.tunings)||void 0===n?void 0:n.widget_lst_button_type)?(e.querySelector(".ulsti").classList.remove("hidden"),e.querySelector(".uai").classList.add("hidden")):"2"==(null===(i=gt.tunings)||void 0===i?void 0:i.widget_lst_button_type)&&(e.querySelector(".uai").style.marginTop="8px"):e.querySelector(".ulsti").classList.add("hidden")}function Ie(e){var t,n,i,r=document.createElement("div");r.classList.add("uw-s12-tooltip"),r.setAttribute("aria-hidden","true"),Ue(r);var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),u=document.createElement("div");o.classList.add("uw-s10-reading-guide"),a.classList.add("uw-s10-left-ruler-guide"),s.classList.add("uw-s10-right-ruler-guide"),l.classList.add("uw-s10-bottom-ruler-guide"),u.classList.add("uw-s10-reading-guide__arrow"),o.appendChild(u),Ue(o),Ue(a),Ue(s),Ue(l);var c=document.createElement("div");c.innerHTML=e,c.classList.add("uwy"),c.setAttribute("data-uw-feature-ignore","true"),c.setAttribute("data-uw-rm-ignore","true"),gt.isMobile&&c.classList.add("umb"),c.style.setProperty("background-color","transparent","important"),c.style.setProperty("overflow","initial","important"),c.style.setProperty("visibility","hidden",""),Oe(c),Ue(c),c.setAttribute("title",wt.getUserWayIconElementTitle(gt));var d=(null===(t=gt.services)||void 0===t?void 0:t.CUSTOM_BRANDING)||(null===(n=gt.services)||void 0===n?void 0:n.WHITE_LABEL)||(null===(i=gt.tunings)||void 0===i?void 0:i.widget_no_logo),g=document.querySelectorAll(".uwif");if(g&&g.length){var f=g[0];f.setAttribute("title",d?wt.getUserWayIconElementTitle(gt):"UserWay "+wt.getUserWayIconElementTitle(gt)),f.style.setProperty("max-width","100vw","important"),f.style.setProperty("visibility","visible","important"),f.style.setProperty("opacity","1","important"),f.style.setProperty("color-scheme","light","important");/Android/i.test(navigator.userAgent)&&(f.style.setProperty("height","100%","important"),f.style.setProperty("max-height","100%","important"))}var p=Me();p&&p.length&&window.UserWay.iconVisibilityOff()}function Ue(e){var t=document.body;t.insertBefore(e,t.children[0])}function Ne(){var e=!document.querySelector("script[uw-lazyload-disabled]");return Zt?Qt:(wt.addUwStylesheetUDFFont(gt),!UserWayWidgetApp.lazyLoaded&&e?(Zt=!0,Qt=new Promise(function(e,t){wt.execJs(Ct+"widgetapp/2024-10-08-15-28-17/widget_app_lazy_1728401297040.js","sha256-/zeXMb0D9vtT6zs36lVyyl2o1KFfiQUS37a3nFkJvCM=").then(function(t){ke(),UserWayWidgetApp.lazyLoaded=!0,o()&&U(),Zt=!1,e()},function(e){console.error("Widgetapp lazyload error:",e),Zt=!1,t()})})):Qt=Promise.resolve(),Qt)}function Ce(){$t||(_(),Ne().then(function(){pt=xt.resolveUserLangSelection(),pt&>.language!==pt&&(gt.language=pt),ge(gt.language)}),$t=!0)}function ke(){Be=UserWayWidgetApp.getLib("keyboard_navigation"),Ve=UserWayWidgetApp.getLib("cursor"),je=UserWayWidgetApp.getLib("bigger_text"),ze=UserWayWidgetApp.getLib("uw_color_manipulation_service"),Ge=UserWayWidgetApp.getLib("highlinks"),Ye=UserWayWidgetApp.getLib("legible_text"),Ke=UserWayWidgetApp.getLib("dyslexia_font"),qe=UserWayWidgetApp.getLib("screen-reader-t"),Je=UserWayWidgetApp.getLib("page_structure"),Xe=UserWayWidgetApp.getLib("tooltips"),Qe=UserWayWidgetApp.getLib("stop_animations"),Ze=UserWayWidgetApp.getLib("spacing_text"),$e=UserWayWidgetApp.getLib("line_height"),et=UserWayWidgetApp.getLib("text_align"),tt=UserWayWidgetApp.getLib("saturation"),it=UserWayWidgetApp.getLib("inlineDictionary"),rt=UserWayWidgetApp.getLib("voice-navigation"),st=UserWayWidgetApp.getLib("hide_images")}function Me(){if(!gt||!Object.keys(gt.tunings).length)return null;var e=gt._userway_config&>._userway_config.trigger,t=gt.tunings&>.tunings.widget_custom_trigger,n=gt.tunings&>.tunings.widget_custom_trigger_enabled,i=e||(n&&t?t:null),r=[];if(i){"."!==i[0]&&(i="#"+i);try{r=[].slice.call(document.querySelectorAll(i))}catch(e){console.error(e)}}return r}function Pe(){var e=window.localStorage.getItem("should-preload-widget");JSON.parse(e)&&Ce()}function Re(){var e,t,n,i;return(null===(e=gt.services.WHITE_LABEL)||void 0===e?void 0:e.hide_logo)||(null===(t=gt.tunings)||void 0===t?void 0:t.widget_no_logo)||(null===(n=gt.services.CUSTOM_BRANDING)||void 0===n?void 0:n.custom_logo_image_link)||(null===(i=gt.services.CUSTOM_BRANDING)||void 0===i?void 0:i.custom_logo_image_path)}function Fe(e,t){ut&&ut.time(e+" "+t)}function De(e,t){ut&&ut.timeEnd(e+" "+t)}var He,qe,Be,Ve,je,ze,Ge,Ye,Ke,Je,Xe,Qe,Ze,$e,et,tt,nt,it,rt,ot,at,st,lt,ut,ct="should-preload-widget",dt=UserWayWidgetApp.addLib("main"),gt={},ft=!1,pt=null,yt=!1,vt={},mt={},wt=UserWayWidgetApp.getLib("util"),ht=UserWayWidgetApp.getLib("localization_manager"),bt=UserWayWidgetApp.getLib("context_setter"),_t=UserWayWidgetApp.getLib("context_setter_on_prem"),Et=UserWayWidgetApp.getLib("dom_observer"),St=UserWayWidgetApp.getLib("skip_links"),At=UserWayWidgetApp.getLib("scan_manager"),Lt=UserWayWidgetApp.getLib("USER_TRACKING"),Tt=UserWayWidgetApp.getLib("cpr_usage_detector"),Wt=UserWayWidgetApp.getLib("tts-reader-status"),xt=UserWayWidgetApp.getLib("widget_language_resolver"),Ot=UserWayWidgetApp.getLib("helpers"),It=UserWayWidgetApp.getLib("WIDGET_HOTKEYS"),Ut="uaw",Nt={UW_BUTTON_POSITION:"1",UW_WIDGET_COLOR:"#0048FF",UW_WIDGET_COLOR_GRADIENT:"off",UW_WIDGET_ICON_TYPE:"1",UW_WIDGET_ICON_SIZE:"small"},Ct="https://cdn.userway.org/",kt="2024-10-08-15-28-17",Mt="widgetapp/2024-10-08-15-28-17/remediation/remediation_1728401297040.js",Pt="remediation/2024-10-08-15-28-17/paid/remediation-tool.js?ts=1728401297040",Rt="remediation/2024-10-08-15-28-17/free/remediation-tool-free.js?ts=1728401297040",Ft="widgetapp/2024-10-08-15-28-17/contrast-remediation/remediation_1728401297040.js",Dt="aria_editor/2024-10-08-15-28-17/index.html?v=1728401297040",Ht="uw-st/2024-10-08-15-28-17/uw-st.js?ts=1728401297040",qt=!1,Bt=Ct+"widget/2024-10-08-15-28-17/",Vt="https://api.userway.org/api",jt="https://cdn.userway.org/styles/2024-10-08-15-28-17/widget_base.css?v=1728401297040",zt='
',Gt="userway-positionWidget",Yt="userway-positionWidgetMobile",Kt="userway-selectedLang",Jt=null,Xt=!1,Qt=null,Zt=!1,$t=!1,en=!1,tn=!1,nn=["widget_position_nudge","widget_position_nudge_mobile"],rn={leftRightSide:{top:18,right:13,bottom:16,left:13},middle:{left:50,top:50}},on=xt.resolvePageLangAttribute(),an=["s9","s11","s18","s21","s24","s101","s102","s103","s104","s105","s106","s107","s108"],sn={main:"main",lst:"lst"},ln="uw-uid";dt.init=e,dt.isSoundEffectsEnabled=f;var un=function(e,t){var n;void 0===t&&(t=""), gt.services.paidAi&&(null===(n=null===gt||void 0===gt?void 0:gt.tunings)||void 0===n?void 0:n.widget_ga_enabled)&&"function"==typeof gtag&>ag("event","UserWay",{name:e,state:t})};dt.setPageStructureModalColor=j;var cn;dt.manageIconVisibility=ce,dt.toggleWidget=de;var dn=function(e){wt.isMobile()&&(document.body.style.overflow=e?"hidden":"")};dt.openWidget=ye,dt.closeWidget=ve,dt.getAvailableBunchOfFeatures=be;var gn=function(e,t){return"current"===e?void sessionStorage.setItem("hideUWWidget","enabled"):"indefinitely"===e?void localStorage.setItem("hideUWWidget","enabled"):void wt.setItemWithExpiry("hideUWWidget","enabled",t)};dt.setFeature=Ee,dt.getFeaturesSettings=function(){if(gt.services.paidAi||!gt.services.hasOwnProperty("paidAi"))return gt.settings;var e={};return Object.keys(gt.settings).forEach(function(t){gt.settings.hasOwnProperty(t)&&-1===an.indexOf(t)&&(e[t]=gt.settings[t])}),e},dt.lazyLoad=Ne,dt.preloadIframe=Ce,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){return e()}):e()}();